Skip to content

Instantly share code, notes, and snippets.

@phette23
Created July 16, 2012 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phette23/3124381 to your computer and use it in GitHub Desktop.
Save phette23/3124381 to your computer and use it in GitHub Desktop.
Clearfix CSS Class
.clearfix:before,
.clearfix:after {
content: "";
display: table;
}
.clearfix:after {
clear: both;
}
.clearfix {
*zoom: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment