Skip to content

Instantly share code, notes, and snippets.

@MattWohler
Created June 7, 2017 21:23
Show Gist options
  • Save MattWohler/a787b31cd6f947270dd937fdeb6dd419 to your computer and use it in GitHub Desktop.
Save MattWohler/a787b31cd6f947270dd937fdeb6dd419 to your computer and use it in GitHub Desktop.
Sticky Footer Styles
/* Sticky footer styles
-------------------------------------------------- */
html {
position: relative;
min-height: 100%;
}
body {
/* Margin bottom by footer height */
margin-bottom: 60px;
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
/* Set the fixed height of the footer here */
height: 60px;
background-color: #f5f5f5;
}
.container {
width: auto;
padding: 0 15px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment