Created
October 2, 2016 11:32
-
-
Save 0632347878/a86ccf38428f0cd127b57402eb273f2a to your computer and use it in GitHub Desktop.
Uses the micro clearfix from Nicolas Gallagher.
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
// Mixin | |
.clearfix() { | |
&:before, | |
&:after { | |
content: " "; | |
display: table; | |
} | |
&:after { | |
clear: both; | |
} | |
} | |
// Usage | |
.container { | |
.clearfix(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment