Skip to content

Instantly share code, notes, and snippets.

@kaimallea
Created May 1, 2012 18:17
Show Gist options
  • Save kaimallea/2570214 to your computer and use it in GitHub Desktop.
Save kaimallea/2570214 to your computer and use it in GitHub Desktop.
Clearfix -- when used on the parent, the children will be self-cleared
.group:before,
.group:after {
content: "";
display: table;
}
.group:after {
clear: both;
}
.group {
zoom: 1; /* IE6&7 */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment