Skip to content

Instantly share code, notes, and snippets.

@hemantajax
Created January 21, 2013 17:55
Show Gist options
  • Save hemantajax/4587863 to your computer and use it in GitHub Desktop.
Save hemantajax/4587863 to your computer and use it in GitHub Desktop.
latest clearfix
/**
* For modern browsers
*/
.cf:before,
.cf:after {
content: " "; /* 1 */
display: table; /* 2 */
}
.cf:after {
clear: both;
}
/**
* For IE 6/7 only
*/
.cf {
*zoom: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment