Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I'm trying to create a fixed header/ footer for mobile, while having the content in between still scrollable. Anyone who has tried will know that position:fixed doesn't work on mobile, because this positions the element based on the browser window, and on a phone essentially scroll the entire browser, so the position:fixed div scrolls with it.

Google released some code showing how they implemented it, but have left some of it blank as a 'user exercise'. I cant figure out the last bits though, it's a bit beyond me! can anyone help out? or suggest a better/ simpler way of doing this? (without using jquery mobile)

google code link:

https://developers.google.com/mobile/articles/webapp_fixed_ui

thanks!

share|improve this question
That article was written in 2010. Now it really is as easy as position:fixed. – Tim Wasson Jun 13 at 14:38

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.