SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Non-load of body background color in Explorer 7

    Hi,

    Wonder if you can help with this one...

    If you open my site: http://www.millionsofcolours.co.uk in Explorer 7 then the body tag background color does not load, leaving a load of whitespace at the bottom of the page. Click refresh once and you will see the intended grey coloring.

    Would be great if you could offer some ideas.

    Thanks,
    Michael

  2. #2
    SitePoint Wizard bronze trophy Tyssen's Avatar
    Join Date
    Oct 2005
    Location
    Brisbane, QLD
    Posts
    4,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The way you've got comments around your IE conditional comments looks a bit dodgy. I'd look at that first.

  3. #3
    SitePoint Zealot twistie's Avatar
    Join Date
    May 2007
    Location
    Tonwsville, Australia
    Posts
    127
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Curious, It didn't work the first in IE7 time but after i refreshed the background loaded perfectly. I think it is somehow related to the conditional comments as there appears to be something wrong with them.
    "When you say 'I wrote a program that crashed Windows',
    people just stare at you blankly and say 'Hey, I got those
    with the system, for free'." (L. Torvalds)

  4. #4
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Still not right

    Thanks for yoyr comments!

    I have taken a look at these things and the behaviour is still the same - in Explorer only. Its almost as though I need to 'remind' Explorer to load the background colour once the page has loaded. Do I have to resort to javascript?

    Again, help would be greatly appreciated.
    Mike

  5. #5
    SitePoint Wizard bronze trophy Tailslide's Avatar
    Join Date
    Feb 2006
    Location
    Bedford, UK
    Posts
    1,687
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Working for me in IE7 - did you fix it?
    Little Blue Plane Web Design
    Blood, Sweat & Rust - A Land Rover restoration project

  6. #6
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Not that I know of

    Thanks very much for checking

    I don't I have fixed it. If there is no cached page on your computer (e.g. the first time you visit the page) there is a large white region towards the bottom of the browser window (unless you are working in 800x600).

    Cheers
    Mike

  7. #7
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Apologies

    Apologies for the confusion with the last post. I have not yet found a resolution for the problem

  8. #8
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,352
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    I can see the problem when I load the page from your site and clear the cache each time then only half the background color displays.

    However when I copy the code locally and try it from my end then it works every time even with clearing the cache.

    This makes it impossible for me to try out anything and see where its going wrong. It seems to suggest a server problem at your end but even when I link to your css file it still works ok for me.

    I would start by taking out the cdata code from the css file as there is no need for that in there and may be causing a problem. You only need those hiding structures when the code is in an xhtml page (afaik).

    If that doesn't resolve it then remove everything from the css file except for the body background color and then see what happens. You should be able to narrow it down if the problems disappears at some stage.

    Try linking to the file instead of import and see what happens.

    If you narrow the problem down then be sure to post your findings here

  9. #9
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Off to work!

    Paul,

    Thanks very much for your comments - I will see what I can do!

    Cheers,
    Mike

  10. #10
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    I have removed the cdata code and linked directly to the css file and now it seems to be working perfectly.

    Many thanks,
    Mike


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •