Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<div id="iphone-wrapper">
<div id="iphone-wrapper-inner">
<!-- put everything except the nav in here and give this a fixed height which is the
height of #iphone-wrapper minus the height of #nav. so this becomes our new scrolling
content area -->
</div>
<div id="nav">
<!-- keep this as position absolute because #iphone-wrapper won't scroll (we let
#iphone-inner-wrapper do that instead) so we don't have to worry about it moving up. -->
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment