Return to Snippet

Revision: 22082
at December 31, 2009 11:05 by CDIDevs


Initial 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 */}

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

Initial Description
Downside -- relies on JavaScript being enabled

Initial Title
IE 6 Min/Max height using

Initial Tags

                                

Initial Language
CSS