Posted by Rob Cornish
August 7, 2008
A genius IE6 min-height fix.
#selector {
min-height:500px;
height:auto !important;
height:500px;
}
Source: Dustdindiaz
Reviewing this code, there's a simpler way of doing it. Here's the other way:
#selector {
min-height:500px;
_height:500px;
}
IE6 should read the _height property where as all other browsers will ignore.
Tags: css, hack, ie6, min-height | Comments (0)
Posted by Rob Cornish
May 7, 2008
Using the following code you can get IE6 to work with min-width and min-height.
* html #wrapper
{
width:expression((d = document.compatMode == "CSS1Compat" ? document.documentElement : document.body) && (d.clientWidth > 1280 ? "1280px" : d.clientWidth < 1024 ? "1024px" : "auto"));
}
Note: Place this within an if IE 6 condition.
Tags: css, expression, hack, ie6, min-height, min-width | Comments (2)