• Resolved fdr2

    (@fdr2)


    Hi there. I inserted the following line in my css stylesheet, in order to set a minimum width for the whole blog. it works, but only in Firefox. (see here). How is it possible to make this happen also in IE?

    body {
     min-width: 900px;
    }
Viewing 7 replies - 1 through 7 (of 7 total)
  • ivovic

    (@ivovic)

    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;)

    jonimueller

    (@jonimueller)

    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

    ivovic

    (@ivovic)

    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.

    jonimueller

    (@jonimueller)

    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?)

    ivovic

    (@ivovic)

    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");
    }

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘fixed width in FF – variable in IE’ is closed to new replies.