Skip to content

Instantly share code, notes, and snippets.

@willkan
Created September 19, 2013 09:22
Show Gist options
  • Save willkan/6621075 to your computer and use it in GitHub Desktop.
Save willkan/6621075 to your computer and use it in GitHub Desktop.
pure css to realize 100% height
body,html{
height:100%;}
#outerbox{
width:100%;
position:absolute; /* to place it somewhere on the screen */
top:130px; /* free space at top */
bottom:0px;} /* makes it lock to the bottom */
#innerbox{
width:100%;
position:absolute;
min-height:100% !important; /* browser fill */
height:auto;} /*content fill */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment