Last active
September 12, 2016 11:03
-
-
Save psycalc/fd425241e595cfa36e9f09caafeb05bc to your computer and use it in GitHub Desktop.
wrapper/container height 100% inside body
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body, html { /*hack selectors*/ | |
height: 100%; /*hack value!!*/ | |
margin: 0px auto; /* delete margin also works margin: 0px; */ | |
padding: 0px auto; /*delete padding also works padding: 0px*/ | |
} | |
/**/ | |
.wrapper { | |
height: auto; /* These two lines were the key. */ | |
min-height: 100% | |
/*overflow: hidden;*/ /* Do not use this, it crops in small browsers. */ | |
margin: 0px auto; | |
padding: 0px auto; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment