-
-
Save travismillerweb/9ddb62df19ae38612594 to your computer and use it in GitHub Desktop.
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 CSS | |
// http://www.cssstickyfooter.com/ | |
$sticky-footer-height: 80px; // must be same height as the footer | |
* { | |
margin: 0; | |
padding: 0; | |
} | |
html, | |
body { | |
height: 100%; | |
} | |
#sticky-wrapper { | |
min-height: 100%; | |
} | |
#sticky-main { | |
overflow: auto; | |
padding-bottom: $sticky-footer-height; | |
} | |
footer { | |
border: none; | |
clear: both; | |
height: $sticky-footer-height; | |
margin-top: -$sticky-footer-height; | |
padding: 0px; | |
position: relative; | |
} | |
body:before { // Opera Fix | |
content: ""; | |
float: left; | |
height: 100%; | |
margin-top: -32767px; | |
width: 0; | |
} |
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 | |
%head | |
%body | |
#sticky-wrapper | |
#sticky-main | |
.container | |
%footer | |
.container |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment