how to set image as background using css with firefox?

Discussion in 'HTML & Website Design' started by Little bunny, Apr 28, 2008.

  1. #1
    i have set an image as background in my web page using css
    it works perfect in IE but is not loaded in fire fox what should i do?
    i am writting following lines

    body {background-image: url("\MyPictures\rose.jpg");
    background-repeat:no-repeat;
    background-attachment:fixed;
    background-position:center;}

    also i want to set image width equals to page width how can it be done?
     
    Little bunny, Apr 28, 2008 IP
  2. mspider

    mspider Guest

    Messages:
    231
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try to set relative url for bg image...not absolute!

    like url(images/rose.jpg).

    But i think the problem is that you linked image from mydocument? You must have image inside page folder.
     
    mspider, Apr 28, 2008 IP
  3. Little bunny

    Little bunny Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    no i keep image in same folder,,,n not in mydocument.
     
    Little bunny, Apr 28, 2008 IP