it works the same in IE7… just not IE6 and earlier.
but, that doesn’t create a fixed width, it just stops further compression if the window is made too small.
Thread Starter
fdr2
(@fdr2)
right, smaller than 900px, that’s what i want. so is there any thing i could do to make IE6 and earlier versions behave the same way?
thanks for the reply btw;)
See this discussion. Your CSS will not validate using this hack, so if that’s important to you… Most of the time I care, but sometimes, you gotta do what you gotta do, you know. So this is bookmarked in my IE Hacks folder. 🙂
http://www.boagworld.com/forum/comments.php?DiscussionID=185#Item_4
It’s a shame so many people still use IE6 – if IE defaulted to upgrading itself like FF does, this wouldn’t be a problem anymore.
of course, if IE did anything by itself, it would be a sign of the apocalypse and microsoft would be sued over it, or something.
Tell me about it. I’m sitting here at work, in a law firm that is one of the top ten largest in our country, using a rickety-a$$ old version of IE6. (And of course no YouTube, no Twitter, no Facebook, no GMail, no Yahoo, no nothing. I guess they want us working, huh?)
how absolutely unreasonable of them 🙂
Thread Starter
fdr2
(@fdr2)
Joni, you are a life saver!
although, i couldn’t get it working, this is the piece of code i added to css, which i guess is not right, would you be kind enough to correct it? Thanks!
* html body{
width: expression(document.body.clientWidth <880 ? "880px");
}