×
Orchidbox
← Content

IE Hack For Max-Width CSS Property

[ Published September 21, 2018 ]

IE does not recognize the max-width CSS property. This piece of code will fix it for IE6 and IE7. This code snip will make the maximum width for the html object 900 pixels.

.cssClass
{
width:expression(document.body.clientWidth > 900? “900px”: “auto” );
}

You may also like...

Let's Talk