LiveZilla Live Chat

Neubreed blog

Enabling min-height in your css for Internet Explorer

Submitted by ryan on Sat, 19/07/2008 - 12:41

Your code is like this:

<div id="box"></div>

and you want to put a minimum height on the div called 'box'. Put the following code into your CSS:

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

Call now on 1300 858 495 or contact us online to discuss your needs.