Skip to content

Instantly share code, notes, and snippets.

@jeremenichelli
Created December 12, 2014 23:05
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 jeremenichelli/78ce0b012ed3b982b299 to your computer and use it in GitHub Desktop.
Save jeremenichelli/78ce0b012ed3b982b299 to your computer and use it in GitHub Desktop.
Clearfix LESS mixin
/* --- CLEARFIX --- */
.clearfix() {
*zoom: 1;
&:before,
&:after {
display: table;
line-height: 0;
content: "";
}
&:after {
clear: both;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment