Skip to content

Instantly share code, notes, and snippets.

@andyError
Created November 18, 2015 15:01
Show Gist options
  • Save andyError/7c58645e5b7c22a3aa95 to your computer and use it in GitHub Desktop.
Save andyError/7c58645e5b7c22a3aa95 to your computer and use it in GitHub Desktop.
Sticky footer
html {
position: relative;
min-height: 100%;
}
body {
margin: 0 0 100px; /* bottom = footer height */
}
footer {
position: absolute;
left: 0;
bottom: 0;
height: 100px;
width: 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment