Skip to content

Instantly share code, notes, and snippets.

@k1r8r0wn
Last active August 29, 2015 14:22
Show Gist options
  • Save k1r8r0wn/24017b47f73bd05398da to your computer and use it in GitHub Desktop.
Save k1r8r0wn/24017b47f73bd05398da to your computer and use it in GitHub Desktop.
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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment