You mean:
Code:
.clearfix:after {
content:".";
display:block;
height:0;
clear:both;
visibility:hidden;
}
.clearfix {
display:inline-block;
}
/* mac hide \*/
* html .clearfix {height: 1%;}
.clearfix {display: block;}
/* End hide */
In the FAQ on floats
And it's not meant to be applied to an element like br - you don't understand it's purpose properly.
When you apply class="clearfix" to an element it will clear itself after the element.
Like in the example provided:
Code:
<div id="outer" class="clearfix">
<div class="floatedstuff">
<p>Floated content to be cleared</p>
</div>
</div>
It kind of adds a <div style="clear: both"></div> after the element you specify.
Bookmarks