[BNM] IE min-width hack
Ali
ali at nubz.com
Fri Nov 10 15:25:52 GMT 2006
Hi Andy
This hack seems to work fine in my IE6 on SP2
curiously though why not use 1199 as the max for defaulting to 740? that way accounting for resized windows on higher than 800 screens e.g. in the cameronmoll version a window size of 850 wide will give a 1200 wide site....using 1199 works fine in my IE also
width: expression(document.body.clientWidth < 1199? "740px" :
document.body.clientWidth > 1202? "1200px" : "auto");
Ali
----- Original Message -----
From: Andy Galletly
To: brightonnewmedia Media
Sent: Friday, November 10, 2006 11:28 AM
Subject: [BNM] IE min-width hack
hi list
I keep crashing IE with my tests, whilst this is fun in some ways,
it's not entirely productive...
I'm using the
width: expression(document.body.clientWidth < 742? "740px" :
document.body.clientWidth > 1202? "1200px" : "auto");
hack from http://www.cameronmoll.com/archives/000892.html ,
apparently making sure the values are different ie. clientWidth <
742? "740px" not clientWidth < 740? "740px" should stop it
crashing, but it keeps doing it...
anyone got any pearls of wisdom for me?
Andy
--
More information about the BNMList mailing list
BNMList is hosted by Screenlists, a Screen-Play.net service