The min-height CSS 2 property it a nice thing to use, unfortunately it doesn’t work in IE/Win. Dave from Mezzoblue has come up with a min-height fix.

I do have some thoughts about it. The fix is a workarround, not only for IE but for Firefox and Opera as well. Those browsers do support the min-height property, so why not use it?

So, I tried it myself and this solution seems to work fine too (tested on IE, Firefox and Opera):

#content {
height: 250px; /* height for IE */
min-height: 250px; /* not supported in IE, so ignored */
#wrapper > #content {
height: auto; /* height back to default value except for IE */

If anyone knows a reason why this won’t work, let me know.

No Responses to “Min-height”.

Comments are closed.