Skip to content

Instantly share code, notes, and snippets.

@not-only-code
Last active December 11, 2015 06:58
Show Gist options
  • Save not-only-code/4562606 to your computer and use it in GitHub Desktop.
Save not-only-code/4562606 to your computer and use it in GitHub Desktop.
Effectively Containing Floats, a better clearfix technique
/* Effectively Containing Floats · @shayhowe · http://www.shayhowe.com */
.group:before,
.group:after {
content: "";
display: table;
}
.group:after {
clear: both;
}
.group {
*zoom: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment