Created
January 11, 2015 08:19
-
-
Save yugaego/f45193114b279804fb44 to your computer and use it in GitHub Desktop.
Bootstrap 3 Sticky Footer
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
/* Sticky footer styles | |
-------------------------------------------------- */ | |
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; | |
} | |
/* Custom page CSS | |
-------------------------------------------------- */ | |
/* Not required for template or sticky footer method. */ | |
.container { | |
width: auto; | |
max-width: 680px; | |
padding: 0 15px; | |
} | |
.container .text-muted { | |
margin: 20px 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment