Background image not working in FF

Discussion in 'CSS' started by Daedalus4198, Sep 24, 2008.

  1. #1
    I'm working on a simple web page for a Web Design class I'm in, and the external stylesheet I'm working with works fine in IE, but the script for my background image doesn't work in FireFox. The folders are all structured correctly, I've checked. Here's the part of the sheet that's causing me trouble.

    body {
    background:url("img\bg\index.jpg") repeat fixed
    }
    Code (markup):
    As you can see, I'm using a textured .jpg image that's in the folder "bg" which is in a seperate "img" folder. I'm positive these are placed correctly.

    Can anyone help me figure out why Firefox won't display the background image?
     
    Daedalus4198, Sep 24, 2008 IP
  2. ridesign

    ridesign Peon

    Messages:
    294
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    shouldn't there be a ";" at the end of each css statement? (I may be wrong

    body {
    background:url("img\bg\index.jpg") repeat fixed;
    }
    Code (markup):
     
    ridesign, Sep 24, 2008 IP
  3. Daedalus4198

    Daedalus4198 Guest

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yeah, I noticed the missing semicolon, but nothing changed when I fixed it.
     
    Daedalus4198, Sep 24, 2008 IP
  4. ridesign

    ridesign Peon

    Messages:
    294
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    do you have a url to see this at?
     
    ridesign, Sep 24, 2008 IP
  5. buzzmaker

    buzzmaker Peon

    Messages:
    103
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Try replacing ' \ ' with a ' / '.
     
    buzzmaker, Sep 24, 2008 IP
  6. brouwer

    brouwer Peon

    Messages:
    349
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Indeed you should always work with slashes with linking: "/"

    Easily remembered by "http:// "
     
    brouwer, Sep 25, 2008 IP