Created
November 18, 2015 15:01
-
-
Save andyError/7c58645e5b7c22a3aa95 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 { | |
position: relative; | |
min-height: 100%; | |
} | |
body { | |
margin: 0 0 100px; /* bottom = footer height */ | |
} | |
footer { | |
position: absolute; | |
left: 0; | |
bottom: 0; | |
height: 100px; | |
width: 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment