Skip to content

Instantly share code, notes, and snippets.

@jaredcunha
Created February 26, 2015 19:10
Show Gist options
  • Save jaredcunha/ba1d7fbd701654c8d898 to your computer and use it in GitHub Desktop.
Save jaredcunha/ba1d7fbd701654c8d898 to your computer and use it in GitHub Desktop.
cleafix
.cf:before,
.cf:after {
content: " "; /* 1 */
display: table; /* 2 */
}
.cf:after {
clear: both;
}
/**
* For IE 6/7 only
* Include this rule to trigger hasLayout and contain floats.
*/
.cf {
*zoom: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment