Does overflow:hidden
applied to <body>
work on iPhone Safari? It seems not.
I can't create a wrapper on the whole website to achieve that...
Do you know the solution?
Example: I have a long page, and simply I want to hide the content that goes underneath the "fold", and it should work on iPhone/iPad.
add this as default to your css
toggleClass this class to to cut page
when you turn off this class first line will call scrolling bar back
It does apply, but it only applies to certain elements within the DOM. for example, it won't work on a table, td, or some other elements, but it will work on a <DIV> tag.
eg:
Only tested in iOS 4.3.
A minor edit: you may be better off using overflow:scroll so two finger-scrolling does work.
Yes, this is related to new updates in safari that are breaking your layout now if you use overflow: hidden to take care of clearing divs.
Its working in Safari browser.
Simply change body height < 300px (height of mobile viewport on landspace is around 300px to 500px)
JS
CSS
Some solutions listed here had some strange glitches when stretching the elastic scrolling. To fix that I used:
Source: http://www.teamtownend.com/2013/07/ios-prevent-scrolling-on-body/