Skip to content

Instantly share code, notes, and snippets.

@vicainelli
Created June 4, 2013 18:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vicainelli/5708278 to your computer and use it in GitHub Desktop.
Save vicainelli/5708278 to your computer and use it in GitHub Desktop.
Sass Clearfix Mixin Based in this article - http://web-design-weekly.com/snippets/sass-clearfix-mixin/
// ======= Sass Clearfix Mixin =======
@mixin clearfix()
&
*zoom: 1
&:before, &:after
content: ""
display: table
&:after
clear: both
// // Usage
// .article
// @include clearfix()
@Litaash
Copy link

Litaash commented Nov 20, 2016

thanks)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment