Skip to content

Instantly share code, notes, and snippets.

@haisum
Created June 15, 2015 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haisum/c4622602541e4616f9d1 to your computer and use it in GitHub Desktop.
Save haisum/c4622602541e4616f9d1 to your computer and use it in GitHub Desktop.
Sticky footer without fixed position
/* Sticky footer styles
-------------------------------------------------- */
html {
position: relative;
min-height: 100%;
}
body {
/* Margin bottom by footer height */
margin-bottom: 80px;
}
footer {
position: absolute;
bottom: 0;
width: 100%;
/* Set the fixed height of the footer here */
min-height: 80px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment