Skip to content

Instantly share code, notes, and snippets.

@the-teacher
Created November 16, 2013 08:26
Show Gist options
  • Save the-teacher/7497586 to your computer and use it in GitHub Desktop.
Save the-teacher/7497586 to your computer and use it in GitHub Desktop.
steel_sticky_footer
/* Base */
html, body {
width: 100%;
height:100%;
}
.body{
height: auto !important;
min-height: 100%;
height: 100%;
}
/* Footer */
$footer_height: 100px;
.fguard{ height: $footer_height; }
.footer{
overflow: hidden;
height: $footer_height;
margin-top: -$footer_height;
}
%body
.body
= yield
.fguard
.footer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment