IE6 Min-Height Hack

April 29, 2009

IE6. No it’s not dead yet and still holds a significant market share. One of the many annoyances is that it does not support “min-height”. Fear not, there is a quick and simple workaround that is fully supported in IE6 and 7. It is completely safe to use in Mozilla/Firefox, Opera 7.x+, Safari1.2+  too, rejoice.

So here it is then:

selector {
    min-height: 500px;
    height: auto !important;
    height: 500px;
}

Follow

Get every new post delivered to your Inbox.