Skip to content

Instantly share code, notes, and snippets.

@brianbroken
Last active December 16, 2015 17:30
Show Gist options
  • Save brianbroken/5471312 to your computer and use it in GitHub Desktop.
Save brianbroken/5471312 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;
}
* 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