Skip to content

Instantly share code, notes, and snippets.

@rodcisal
Created November 26, 2014 12:22
Show Gist options
  • Save rodcisal/e042eb3c70a66ccc98bd to your computer and use it in GitHub Desktop.
Save rodcisal/e042eb3c70a66ccc98bd to your computer and use it in GitHub Desktop.
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