Posted By

CDIDevs on 12/31/09


Tagged


Versions (?)

IE 6 Min/Max height using


 / Published in: CSS
 

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

Downside -- relies on JavaScript being enabled

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

Report this snippet  

You need to login to post a comment.