Skip to content

Instantly share code, notes, and snippets.

@welkang
Created September 24, 2012 08:57
Show Gist options
  • Save welkang/3775008 to your computer and use it in GitHub Desktop.
Save welkang/3775008 to your computer and use it in GitHub Desktop.
clear the float
/* new clearfix */
.clearfix:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
* html .clearfix {
zoom: 1;
}/* IE6 */
*:first-child+ html .clearfix {
zoom: 1;
} /* IE7 */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment