Revision: 13352
Updated Code
at April 21, 2009 09:50 by charmcitycoder
Updated Code
* html div#mySelector{ height: expression( this.scrollHeight > 332 ? "333px" : "auto" ); /* sets max-height for IE */ } div#mySelector{ max-height: 333px; /* sets max-height value for standards-compliant browsers */ }
Revision: 13351
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 20, 2009 16:57 by charmcitycoder
Initial Code
* 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 */ }
Initial URL
http://perishablepress.com/press/2007/01/16/maximum-and-minimum-height-and-width-in-internet-explorer/
Initial Description
Thanks to perishablepress.com for this. Below is an example for ie6 max-height. From their site: "This method has been verified in IE6 and should also work in IE5. Simply change the values to suit your needs (code commented with explanatory notes). In this example, we are setting the max-height at 333px 1 for IE and all standards-compliant browsers:"
Initial Title
IE 6 Min/Max height using "expression"
Initial Tags
ie, ie6
Initial Language
CSS