Created
April 27, 2012 11:46
-
-
Save rutger1140/2508600 to your computer and use it in GitHub Desktop.
Micro clearfix in LESS
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 - lrdk.nl/ck */ | |
.cf { | |
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
Micro clearfix hack by Nicolas Gallagher, written in LESS.