footer to bottom

CSS styles:

body, html {height:100%;}
.wrap {min-height:100%;} /* cannot have margin, padding or border styles because scrollbar will appear */
*html .wrap { height: 100%; } /* IE6 hack */
.pusher {clear:both; height:95px;} /* same height as height and margin-top in footer */
.footer {height:95px; margin-top:-95px; }

HTML structure:

<div class="wrap">
	<div class="content">content</div>
	<div class="pusher"></div>
</div>
<div class="footer"></div>

Works in all major browsers (including IE6).

VN:F [1.9.17_1161]
Rating: 0 (from 0 votes)

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">