Skip to content

Instantly share code, notes, and snippets.

@flipjs
Forked from mike-henderson/micro-clearfix-mixin.scss
Last active August 29, 2015 14:25
Show Gist options
  • Save flipjs/9c250a4cf191a385f34c to your computer and use it in GitHub Desktop.
Save flipjs/9c250a4cf191a385f34c to your computer and use it in GitHub Desktop.
@mixin clearfix-micro() {
& {
*zoom: 1;
}
&:before,
&:after {
content: "";
display: table;
}
&:after {
clear: both;
}
}
//Usage:
.whatever {
@include clearfix-micro();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment