Skip to content

Instantly share code, notes, and snippets.

@hersonls
Created July 17, 2013 17:03
Show Gist options
  • Save hersonls/6022435 to your computer and use it in GitHub Desktop.
Save hersonls/6022435 to your computer and use it in GitHub Desktop.
CSS: Clearfix
.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