Skip to content

Instantly share code, notes, and snippets.

@Ricardo-Diaz
Created October 25, 2012 23:42
Show Gist options
  • Save Ricardo-Diaz/3956176 to your computer and use it in GitHub Desktop.
Save Ricardo-Diaz/3956176 to your computer and use it in GitHub Desktop.
CSS: Clearfix
.clearfix:before,
.clearfix:after {
content: " ";
display: table;
}
.clearfix:after {
clear: both;
}
/* IE6/7 support */
.clearfix {
*zoom: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment