View Single Post
Old 10-25-2010, 08:09 PM  
sortie
Confirmed User
 
sortie's Avatar
 
Industry Role:
Join Date: Mar 2007
Posts: 7,771
Quote:
Originally Posted by Zorgman View Post
I didn't post the code because I was using your code. I made no changes.
Iphone has a problem with "position:fixed" because it uses a "view port".
The w3 specs say that the position should be fixed to the view port but
safari iphone doesn't actually do that.

http://www.w3.org/TR/CSS21/visuren.html#choose-position
Quote:
fixed:
The box's position is calculated according to the 'absolute' model, but in addition, the box is fixed with respect to some reference. As with the 'absolute' model, the box's margins do not collapse with any other margins. In the case of handheld, projection, screen, tty, and tv media types, the box is fixed with respect to the viewport and does not move when scrolled. In the case of the print media type, the box is rendered on every page, and is fixed with respect to the page box, even if the page is seen through a viewport (in the case of a print-preview, for example).

Here is a Iphone work around :

http://doctyper.com/archives/200808/...mobile-safari/


Have fun.
__________________
sortie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote