0

Hii people !!!
In one of the web pages I am designing, I have 3 tables whose width and height I am defining using div. I am able to properly set the width . But when it comes to height, I need to set both the maximum height and the minimum height. I tried using both the max-height and min-height , but only one of these two attributes is applied....

Please advice,

4
Contributors
5
Replies
6
Views
9 Years
Discussion Span
Last Post by FC Jamison
0

IE will treat height similarly to min-height -
content will push the height of a box higher if it does not fit in the specified height.
Basically min and max height properties isn't supported by IE.

0

I found this googling around:

max-height

* html div#division { 
   height: expression( this.scrollHeight > 332 ? "333px" : "auto" ); /* sets max-height for IE */
   max-height: 333px; /* sets max-height value for all standards-compliant browsers */
}

min-height

* html div#division { 
   height: expression( this.scrollHeight < 334 ? "333px" : "auto" ); /* sets min-height for IE */
   min-height: 333px; /* sets min-height value for all standards-compliant browsers */
}
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.