Skip to content

Instantly share code, notes, and snippets.

@robertmagnusson
Created February 11, 2014 15:10
Show Gist options
  • Save robertmagnusson/8936636 to your computer and use it in GitHub Desktop.
Save robertmagnusson/8936636 to your computer and use it in GitHub Desktop.
Clearfix mixin
@mixin clearfix() {
&:before,
&:after {
content: "";
display: table;
}
&:after {
clear: both;
}
}
.article {
@include clearfix();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment