IE Hack For Max-Width CSS Property

by | Sep 21, 2018 | Content

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.

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

Related reading…

Black Friday UK Retailer Meltdown

Black Friday is well and truly upon us. It can be categorically said that this has been the biggest hype of the event ever in the UK; Thanksgiving and in particular ‘Black Friday’ has taken our little island by storm. And this hasn’t come out of...

read more