IE5.5 and HTML tag

Discussion in 'CSS' started by rochow, May 23, 2008.

  1. #1
    One thing I haven't been able to find about, is this IE5.5 bug.

    For example:

    CSS
    In every other browser, that works. I added font-size:10em to HTML and that worked (IE5.5 does pay attention to HTML then) so either:
    - IE5.5 doesn't like images at all on the HTML tag (it does display the bg colour though)
    - It doesn't like repeating backgrounds
    - It needs a hack

    Anyone know the answer?
     
    rochow, May 23, 2008 IP
  2. Neticule

    Neticule Well-Known Member

    Messages:
    491
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    108
    #2
    I dont htink you will be able to get it to work, I bet 5.5 just will not display anything parent of the body, so the only way to do this would be put whats in your html css now, into the body css, and then make a div directly after the body, and put your old body css into that div...

    I will try to put an example.
    This is (roughly) how you have it now:
    html {background:url(images/bg.gif) repeat-y center top #000}
    body {background:url(images/top-bg.gif) repeat-x}

    <html>
    <body>
    your site content is here...
    </body>
    </html>


    you should try doing it like this:
    html {}
    body {background:url(images/bg.gif) repeat-y center top #000}
    #bodyTwo {background:url(images/top-bg.gif) repeat-x}

    <html>
    <body>
    <div id="bodyTwo">
    your site content is here...
    </div>
    </body>
    </html>


    That is the only way I can think for you to fix it, but I am sure there is some other way, I am no css expert so maybe wait for some more replies :p
     
    Neticule, May 24, 2008 IP
  3. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #3
    I have to wonder why you're concerned about IE5.x at all. It is a totally obsolete browser, was superseded seven years ago, and was completely orphaned by MSFT.

    cheers,

    gary
     
    kk5st, May 24, 2008 IP
  4. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #4
    But that is whats weird - it displays the background colour! I added font-size:10em to HTML, and sure enough the font size went massive. So it is paying attention to it.

    A) A fair few big clients still want support for IE5.5 (It doesn't matter why, fact is they have the moola)
    B) More than reason A, I just want to know. It bugs me that there is probably a simple solution and I haven't been able to find it or discover it myself.
     
    rochow, May 24, 2008 IP
  5. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #5
    Do they actually have a sane reason, or are they just parroting old requirements? I've never had a problem getting IE5.x kicked out once the situation was explained—not to mention the premium on building in support for dead browsers. ;)

    Fair enough. I have to go by memory, but as I recall, IE5 does not recognize that html and body are separate elements. Even now, I have to remind myself they can be styled separately.

    cheers,

    gary
     
    kk5st, May 24, 2008 IP
  6. rochow

    rochow Notable Member

    Messages:
    3,991
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    240
    #6
    Clients request it - more than likely they are using the same requirements that they used from their initial web designer years ago. Telling them less than 1% of people use it isn't good enough - if they have millions of hits then some would be IE5.5 (fair enough, they are paying heaps already might as well pay a little bit extra and get a few minority browsers covered)

    That could very well be the reason. It would explain why the background colour works (I didn't define any colour on the body) but the image didn't, and also why the font works too
     
    rochow, May 25, 2008 IP