Skip to content

Instantly share code, notes, and snippets.

@davidfurlong
Created October 15, 2014 18:37
Show Gist options
  • Save davidfurlong/e882377ee9b566383a19 to your computer and use it in GitHub Desktop.
Save davidfurlong/e882377ee9b566383a19 to your computer and use it in GitHub Desktop.
Sticky footer that actually works
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