Skip to content

Instantly share code, notes, and snippets.

@vitkon
Last active December 17, 2015 22:48
Show Gist options
  • Save vitkon/5684304 to your computer and use it in GitHub Desktop.
Save vitkon/5684304 to your computer and use it in GitHub Desktop.
SASS: mixin – 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