How to call background from CSS!!!

Discussion in 'CSS' started by afya, Dec 14, 2006.

  1. #1
    Hello,

    how to call background image from CSS. i need to valid my site from w3validation please help me.
     
    afya, Dec 14, 2006 IP
  2. Josh Inno

    Josh Inno Guest

    Messages:
    1,623
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try this, if you need more help, be sure to ask. ^_^

    body {
    background-image: url("paste your background image link here");
    }
     
    Josh Inno, Dec 14, 2006 IP
    iatbm likes this.
  3. dp-user-1

    dp-user-1 Well-Known Member

    Messages:
    794
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    110
    #3
    body {
    background-image: url(http://www.website.com/directory/image.gif);
    }
    Code (markup):
     
    dp-user-1, Dec 14, 2006 IP
  4. parusa619

    parusa619 Banned

    Messages:
    556
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #4
    body {
    background:URL('www.domain.com/someimage.jpg') no-repeat center fixed;
    ...
    }

    URL - url of the image
    no-repeat - image does not repeat when you embed it on your background
    center - the image is positioned in the center
     
    parusa619, Dec 19, 2006 IP