Created
November 9, 2012 16:31
-
-
Save markvital/4046697 to your computer and use it in GitHub Desktop.
Sticky Footer (Make the Footer Stick to the Bottom of a Page)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
margin: 0; | |
} | |
html, body { | |
height: 100%; | |
} | |
/* main content wrapper */ | |
.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 provided by Ryan Fait | |
* http://ryanfait.com/sticky-footer/ | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment