Skip to content

Instantly share code, notes, and snippets.

@0632347878
Created October 2, 2016 11:32
Show Gist options
  • Save 0632347878/a86ccf38428f0cd127b57402eb273f2a to your computer and use it in GitHub Desktop.
Save 0632347878/a86ccf38428f0cd127b57402eb273f2a to your computer and use it in GitHub Desktop.
Uses the micro clearfix from Nicolas Gallagher.
// Mixin
.clearfix() {
&:before,
&:after {
content: " ";
display: table;
}
&:after {
clear: both;
}
}
// Usage
.container {
.clearfix();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment