Kissaki Blog

November 22, 2009

CSS clearfix

Filed under: English, Webmaster, development — Tags: , — Kissaki @ 14:48

You may, hopefully, know .clearfix.

A really good indepth view about css clearfixing can be read here.

.clearfix:after {
 content: ".";
 display: block;
 height: 0;
 clear: both;
 visibility: hidden;
}
.clearfix {display: inline-block;}
/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
.clearfix {display: block;}
/* End hide from IE-mac */

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress