Click to See Complete Forum and Search --> : min-height fix for IE & Mac 5.2?


ne_plus_ultra
03-28-2008, 09:24 AM
I have set a container with a min-height of 100%. However, when I do the browser compatibility checks -- it states that IE, Safari 2 & Mac 5.2 don't support this property. Is there a way around this?

Centauri
03-28-2008, 09:32 AM
Not sure about the other browsers, but IE6 treats height like min-height, so it is simply a matter of supplying IE6 only the height - the * html method is useful for that.

ne_plus_ultra
03-28-2008, 09:37 AM
Not sure about the other browsers, but IE6 treats height like min-height, so it is simply a matter of supplying IE6 only the height - the * html method is useful for that.

So if I apply

* html #container {

height: 100%;
}

It should be fine -- I presume...?

Centauri
03-28-2008, 10:23 AM
Yes, that will behave like min-height:100% in decent browsers.