Skip to content

Instantly share code, notes, and snippets.

@sivakumar-kailasam
Created February 5, 2013 11:39
Show Gist options
  • Save sivakumar-kailasam/4713931 to your computer and use it in GitHub Desktop.
Save sivakumar-kailasam/4713931 to your computer and use it in GitHub Desktop.
CSS floats clearfix
/* For modern browsers */
.cf:before, .cf:after {
content:"";
display:table;
}
.cf:after {
clear:both;
}
/* For IE 6/7 (trigger hasLayout) */
.cf {
*zoom:1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment