/ Published in: CSS
URL: http://ryanfait.com/sticky-footer/
What really does the trick is html & body height set to 100% and using negative margins...
Expand |
Embed | Plain 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 http://ryanfait.com/ */
You need to login to post a comment.
