Skip to content

Instantly share code, notes, and snippets.

@travismillerweb
Forked from ruedap/application.css.scss
Created July 23, 2014 17:35
Show Gist options
  • Save travismillerweb/9ddb62df19ae38612594 to your computer and use it in GitHub Desktop.
Save travismillerweb/9ddb62df19ae38612594 to your computer and use it in GitHub Desktop.
// 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;
}
!!!
%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