Skip to content

Instantly share code, notes, and snippets.

@scrooloose
Created December 18, 2009 01:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scrooloose/259177 to your computer and use it in GitHub Desktop.
Save scrooloose/259177 to your computer and use it in GitHub Desktop.
//IE6 doesnt support min-(height|width), but these 2 hacks
//effectively implement them.
//Details: www.dustindiaz.com/min-height-fast-hack
=min_height_hack(!height)
min-height = !height
height: auto !important
height = !height
=min_width_hack(!width)
min-width = !width
width: auto !important
width = !width
//Fixes the Doubled Float-Margin bug.
//Details: www.positioniseverything.net/explorer/doubled-margin.html
=double_float_margin_fix
display: inline
float: left
//Fixes the Peekaboo bug.
//Details: http://www.positioniseverything.net/explorer/peekaboo.html
=peekaboo_fix
_display: inline-block
//A clearing hack swiped from the compass project
//(http://compass-style.org)
=clearfix
overflow: auto
overflow: -moz-scrollbars-none
// 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