Skip to content

Instantly share code, notes, and snippets.

@Peeja
Created January 31, 2009 17:16
Show Gist options
  • Save Peeja/55599 to your computer and use it in GitHub Desktop.
Save Peeja/55599 to your computer and use it in GitHub Desktop.
clearfix as a Sass mixin (saved for future reference)
# From http://wonderfullyflawed.com/2008/05/21/clearfix-as-mixin/
=clearfix
*display: inline-block
&:after
content: " "
display: block
height: 0
clear: both
visibility: hidden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment