Check the following articles that explain the css hack to keep footer at bottom of the page.
http://ryanfait.com/resources/footer-stick-to-bottom-of-page/
http://ryanfait.com/sticky-footer/
http://www.cssstickyfooter.com/
http://www.cssstickyfooter.com/using-sticky-footer-code.html
In case, above links are not working, check below.
CSS::
* {
margin: 0;
}
html, body {
height: 100%;
}
.wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto -4em;
}
.footer, .push {
height: 4em;
}
<html>
<head>
<link rel="stylesheet" href="layout.css" ... />
</head>
<body>
<div class="wrapper">
<p>Your website content here.</p>
<div class="push"></div>
</div>
<div class="footer">
<p>Copyright (c) 2008</p>
</div>
</body>
</html>
Multicolumn Layout With Sticky Footer
Add clear to the .push div
.footer, .push {
clear: both;
}
No comments:
Post a Comment