Sticky Footer

Tagged with CSS

Language: CSS

View as text

* {
	margin: 0;
html, body {
	height: 100%;
.wrapper {
	min-height: 100%;
	height: auto !important;
	height: 100%;
	margin: 0 auto -142px; /* the bottom margin is the negative value of the footer's height */
.footer, .push {
	height: 142px; /* .push must be the same height as .footer */


Sticky Footer by Ryan Fait

Original snippet written by Ryan Fait
Last updated at 01:25 AM on Dec 12, 2008 by Brian Hogan

SnippetStash costs money to host and develop. The service is free for everyone to use
but if you found it useful please consider making a small donation.