How would you use auto height? I need the hight to be 250px default the auto is working but i cant get a default hight.
A:
Maybe min-height
?
As Brian Scott rightly said, min-height
is not implemented in IE6, so you could use a JavaScript expression (see this blog article).
* html div#mydiv {
height: expression( this.scrollHeight > 249 ? "250px" : "auto" );
}
div#mydiv {
min-height: 250px;
}
Bertrand Marron
2010-10-08 12:34:06
Just remember that min-height and min-width are not implemented in IE6. You can double up the style with the IE6 expression syntax if you really need to.
Brian Scott
2010-10-08 12:35:19