Published in: CSS
".clearfix" is the container that holds all of your floated elements. Works in all browsers that support "float" and "clear".
.clearfix { display: inline-table; /* Hides from IE-mac \*/ height: 1%; display: block; /* End hide from IE-mac */ } html>body .clearfix { height: auto; } .clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
Comments
Subscribe to comments
You need to login to post a comment.

Aw, I see a hack :(
Although, it's not a real problem, as IE-Mac isn't supported anymore (I think?). No issue.