Skip to content

Instantly share code, notes, and snippets.

@ajuliano
Last active December 11, 2015 05:58
Show Gist options
  • Save ajuliano/4555953 to your computer and use it in GitHub Desktop.
Save ajuliano/4555953 to your computer and use it in GitHub Desktop.
/* Clearfix
*
* For clearing floats like a boss h5bp.com/q
*
*/
.clearfix { *zoom: 1; }
.clearfix:before,
.clearfix:after {
display: table;
content: "";
line-height: 0;
}
.clearfix:after { clear: both; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment