Skip to content

Instantly share code, notes, and snippets.

@brendanmckeown
Created April 17, 2015 18:22
Show Gist options
  • Save brendanmckeown/4fbc100e149db203f207 to your computer and use it in GitHub Desktop.
Save brendanmckeown/4fbc100e149db203f207 to your computer and use it in GitHub Desktop.
Sass clearfix placeholder. Apply to parent selector that has floated children.
%clearfix {
&:before,
&:after {
content: " ";
display: table;
}
&:after {
clear: both;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment