Background image repeated?

Discussion in 'HTML & Website Design' started by forumSEO, Sep 4, 2007.

  1. #1
    How do I make a background image repeated not only down but also across.

    Thanks
     
    forumSEO, Sep 4, 2007 IP
  2. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #2
    background-repeat:repeat;

    or append it to the single background 'shortcut'

    background:#888 url(images/whatever.png) repeat;

    just as you would for repeat-x, repeat-y or no-repeat.

    Though repeat on both dimensions is the default behavior...
     
    deathshadow, Sep 4, 2007 IP
  3. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The background image should automatically tile; if you set no value, the default of "background-repeat" is "repeat". If you have something that is stopping the tiling, you can set it manually to "background-repeat: repeat".

    The other values are no-repeat, repeat-x (repeats only horizontally) and repeat-y (repeats only vertically).
     
    Stomme poes, Sep 4, 2007 IP
  4. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Dammit. .
     
    Stomme poes, Sep 4, 2007 IP
  5. Noddegamra

    Noddegamra Peon

    Messages:
    1,013
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #5
    In your css write:

    
    body{
    margin: 0;
    padding: 0;
    background:#ddd url(images/example.gif) repeat;
    }
    
    Code (markup):
     
    Noddegamra, Sep 4, 2007 IP