Skip to content

Instantly share code, notes, and snippets.

@johanbrook
Created July 4, 2011 23:19
Show Gist options
  • Save johanbrook/1064048 to your computer and use it in GitHub Desktop.
Save johanbrook/1064048 to your computer and use it in GitHub Desktop.
.clearfix:after{
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
.clearfix {display: inline-block;}
* html .clearfix {height: 1%;}
.clearfix {display: block;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment