Background-Repeat

Discussion in 'CSS' started by Hyphen, Sep 8, 2008.

  1. #1
    I am trying to use
    background-repeat:repeat;
    Code (markup):
    in unison with...
    background-position:bottom center;
    background-attachment:fixed;
    Code (markup):
    Basically, I only want the background to repeat horizontally, and not tile vertically. How can I do this?

    For example:
    _______________
    |
    |
    |
    |
    |
    |************|
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

    not:
    _______________
    |************|
    |************|
    |************|
    |************|
    |************|
    |************|
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
     
    Hyphen, Sep 8, 2008 IP
  2. Spawny

    Spawny Well-Known Member

    Messages:
    252
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    110
    #2
    use
    background-repeat:repeat-x; 
    HTML:
    to repeat horizontally

    use this to repeat vetically
    background-repeat:repeat-y; 
    HTML:
     
    Spawny, Sep 8, 2008 IP
  3. Hyphen

    Hyphen Well-Known Member

    Messages:
    464
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Thanks! That helps.
     
    Hyphen, Sep 9, 2008 IP