Issues with fixed header, footer and side bar on ipad / iphone
position: fixed
is known not to play well on iOS - http://remysharp.com/2012/05/24/issues-with-position-fixed-scrolling-on-ios/
How to fix it? Easy. Search StackOverflow. This question has been asked previously:
Admin
Updated on March 07, 2020Comments
-
Admin over 4 years
I'm in the process of developing a new website for a local club.
I've created the main webpage and have a fixed header, footer and side bar, the content is in a scrolling element. The page looks perfect on my MacBook and in various browsers. When I look at the page on my iPhone or iPad the page looks as it should until I zoom the page and then the fixed side bar is no longer fixed.
If anyone has any clues as to what I'm doing wrong I'd be very grateful as this is driving me mad.
The test page can be viewed at http://tawvelo.org/new/home.html.
I've attached a couple of photos which will hopefully show the issue.
-
Drenmi over 8 yearsIf the answer exists on SO, use the flag feature to mark it as a duplicate instead of linking to the other questions in an answer.
-
Drenmi over 8 yearsWhile this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes.
-
Terry over 8 years@Drenmi And if the answer is posted in excess of two years ago and you think it's not up to scratch, edit it, or flag it for review.
-
Drenmi over 8 yearsThe reason I commented on this is it popped up in the review queue ... You can also see that the second comment is auto-generated by a close-vote. ;-)
-
DaSch almost 8 yearsThis doesn't really answer the question how you fix the problem with zooming