Skip to content

Instantly share code, notes, and snippets.

@kswedberg
Created August 27, 2010 15:19
Show Gist options
  • Save kswedberg/553554 to your computer and use it in GitHub Desktop.
Save kswedberg/553554 to your computer and use it in GitHub Desktop.
html {
height: 100%;
background-color: #dfd;
}
body {
position: relative;
min-height: 100%;
width: 960px;
margin: 0 auto;
padding: 0 20px;
background-color: #fff;
}
/* for IE6 */
* html body { height: 100%; }
/* body > .footer */
.footer {
position: absolute;
height: 60px; /* .footer height <= .container padding-bottom*/
margin: 0 auto;
padding: 0 20px;
bottom: 0;
left: 0;
width: 960px;
background-color: #ff0;
}
/* body > .container*/
.container {
margin: 0;
padding: 20px 0 80px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment