Results 1 to 8 of 8

Thread: Firefox Background Image Problem

  1. #1
    Join Date
    Mar 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Firefox Background Image Problem

    For the life of me I can't figure this out.

    The background image I am trying to use displays properly on IE, but in Firefox it does not scroll all the way to the bottom as I would like.

    Here is my site:
    http://www.windermereroadies.com/index2.php

    And here is the CSS code:
    http://www.windermereroadies.com/css/main.css

    Please help!

    Thanks!

    Manny

    [ edit ]

    I should clarify that when I increase the content on div:content (middle column), the background image moves correctly. The problem only happens when the lenght of one of the side columns is longer than the middle column.
    Last edited by mannyotr; 03-17-2006 at 05:57 PM.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    On
    Code:
    Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.8.0.1) Gecko/20060311 Firefox/1.5.0.1
    I see no background image at all. Probably because http://www.windermereroadies.com/images/body_bg.gif doesn't exist.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Mar 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey
    I see no background image at all. Probably because http://www.windermereroadies.com/images/body_bg.gif doesn't exist.
    It's there. But it's under css/images/body_bg.gif.

    It's the red/black lines at the bottom of the page.


    ^^ These.

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Aha, I see. Yes.
    In this case, try:
    Code:
    background-position: bottom;
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Mar 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks Twey, but no go. =(

    It still overlpas the sidebar content (in Firefox only).

  6. #6
    Join Date
    Mar 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I just added some content to the div:content area (making it longer than the sidebar content), which in turn 'pushed' the background image down. So as long as I keep the div:content area longer, it should be no problem.

    However, I would still love to know how to fix it for future reference.

    Thanks!

    Manny

  7. #7
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by mannyotr
    Thanks Twey, but no go. =(
    As a brief aside, with what Twey suggested, you can reduce that background image to just the black and red part at the bottom. You already explicitly specify a background colour (very good) and bottom padding.

    It still overlpas the sidebar content (in Firefox only).
    In Opera, too, and they are both correct.

    Your sidebar is absolutely-positioned. This means that it is taken out-of-the-flow; it doesn't affect the layout behaviour of other elements around it. As a result, the body element ignores the sidebar when determining its height.

    One fix is to float the sidebar to the right, then place an empty element after it with a clear declaration. This will force that element to a position below the sidebar, whatever its height, stretching the body element in the process.

    Mike

  8. #8
    Join Date
    Mar 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks Mike (and Twey)!

    I will try making those changes and see how it works out.

    Thanks!

    Manny

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
  •