/ Published in: CSS

Downside -- relies on JavaScript being enabled
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
* 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 */}
Comments
