Skip to content

Instantly share code, notes, and snippets.

@em
Created August 3, 2011 06:41
Show Gist options
  • Save em/1122040 to your computer and use it in GitHub Desktop.
Save em/1122040 to your computer and use it in GitHub Desktop.
// This is a hack that makes IE6 act almost as if overflow:hidden worked
// Empty clearfix divs are injected into every div by recuryjs, and this mixin
// overrides 'overflow' so that if you pass 'hidden', it adds a clear:both to the
// first descendent. IE also doesn't support the > selector so we emulate that
// with a further nesting inverting to clear:none
overflow(v)
overflow v
if v == 'hidden'
.clearfix
clear both
.clearfix
clear none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment