Last active
August 29, 2015 14:22
-
-
Save k1r8r0wn/24017b47f73bd05398da to your computer and use it in GitHub Desktop.
Sticky footer styles
This file contains 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 bottom by footer height */ | |
margin-bottom: 60px; | |
} | |
footer { | |
position: absolute; | |
bottom: 0; | |
width: 100%; | |
/* Set the fixed height of the footer here */ | |
height: 60px; | |
background-color: #f5f5f5; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment