Created
April 18, 2012 20:06
-
-
Save geddski/2416187 to your computer and use it in GitHub Desktop.
micro clearfix LESS mixin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Micro ClearFix Mixin */ | |
.clearfix{ | |
zoom:1; | |
&:before, &:after{ content:""; display:table; } | |
&:after{ clear: both; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is an old post, but its still ranked on google.
Will lead to less bloat. It hoists the .my-class selector upto the .clearless declaration.