tags:

views:

98

answers:

1
max-height:600px;

The above works as height:600px in IE7,and not working at all in IE6.

A: 

IE6 doesn't support this. Use conditional comments to feed an it an IE6-only stylesheet, and use IE's proprietary "expression" attribute to use some javascript.

#id {
   height: expression( this.scrollHeight > 332 ? "333px" : "auto" );
}

See http://perishablepress.com/press/2007/01/16/maximum-and-minimum-height-and-width-in-internet-explorer/

Kevin C.