tags:

views:

41

answers:

2

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.

+3  A: 

Perhaps min-height is what you are looking for ?

FreekOne
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
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