Last active
December 18, 2015 04:19
-
-
Save ghernandez345/5724692 to your computer and use it in GitHub Desktop.
Sticky footer
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
html,body { | |
height: 100%; | |
} | |
/* The bottom margin on #wrap must be the negative value of the height on #push and #footer. | |
* | |
* e.g. | |
* ------------------------------------------ | |
* #push and footer height is 60px; | |
* #wrap margin bottom is -60px; | |
*/ | |
#wrap { | |
min-height: 100%; | |
height: auto !important; | |
height: 100%; | |
margin: 0 auto -60px; | |
} | |
/* Make sure that #push and #footer have the same height. */ | |
#push, #footer { | |
height: 60px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment