Sticky Footer – A static footer with very little css
Posted on April 2, 2011 | No Comments
* {
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 */
}
[/css]
<div class="wrapper"> <div class="header"> <h1>CSS Sticky Footer</h1> </div> <h2>A CSS sticky footer that just works</h2> <p>bosy</p> <div class="push"></div> </div> <div <a href="http://jtc-enterprises.com/images/">buy cialis tadalafil</a> class="footer"> <a href="http://amoxilbuysale.com">Order Generic Amoxil Online without Prescription</a> <p>footer note</p> </div>
Comments
Leave a Reply
You must be logged in to post a comment.