Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Alternative clearfix method
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
.clearfix{ display: inline-block;}
/* via Denise Jacobs
Does not work in IE 6/7
Copy link

jensgro commented May 9, 2011

Well this method is a little bit too short. Use this:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment