Skip to content

Instantly share code, notes, and snippets.

@fieldoffice
Created September 21, 2014 08:38
Show Gist options
  • Save fieldoffice/dca763bde7eda2cb3b29 to your computer and use it in GitHub Desktop.
Save fieldoffice/dca763bde7eda2cb3b29 to your computer and use it in GitHub Desktop.
Sass Clearfix Mixin
@mixin clearfix() {
&:before,
&:after {
content: "";
display: table;
}
&:after {
clear: both;
}
}
.class {
@include clearfix();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment