Skip to content

Instantly share code, notes, and snippets.

@imathis
Created May 26, 2010 18:04
Show Gist options
  • Save imathis/414823 to your computer and use it in GitHub Desktop.
Save imathis/414823 to your computer and use it in GitHub Desktop.
=clearfix
overflow: hidden
+has-layout
/* clears while allowing overflow (great for use with box shadows)
=pie-clearfix
&:after
content: " "
display: block
height: 0
clear: both
overflow: hidden
visibility: hidden
+has-layout
=has-layout
// This makes ie6 get layout
display: inline-block
// and this puts it back to block
&
display: block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment