Skip to content

Instantly share code, notes, and snippets.

@atelierbram
Last active January 3, 2016 17:38
Show Gist options
  • Save atelierbram/8496533 to your computer and use it in GitHub Desktop.
Save atelierbram/8496533 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
.container-with-floated-children:before, .container-with-floated-children:after {
content: " ";
display: table;
}
.container-with-floated-children:after {
clear: both;
}
br {
clear: both;
}
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
%clearfix {
&:before,
&:after {
content: " ";
display: table;
}
&:after {
clear: both;
}
}
// example of usage
.container-with-floated-children {
@extend %clearfix;
}
%clear {
clear: both;
}
br {
@extend %clear;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment