Need some CSS help

Discussion in 'CSS' started by oseymour, Aug 28, 2007.

  1. #1
    I have the following code in my style sheet

    body {
    background: #FFF url(bg.jpg);
    }
    Code (markup):
    how do I stop the image from repeating down the page?
     
    oseymour, Aug 28, 2007 IP
  2. swapshop

    swapshop Peon

    Messages:
    656
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    0
    #2
    footer {width: 170px; float: left;padding-left: 20px;background: url(../images/image_name.png) no-repeat top right}

    no-repeat I think should do it
     
    swapshop, Aug 28, 2007 IP
  3. tmeyer45458

    tmeyer45458 Peon

    Messages:
    355
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    0
    #3
    sounds like you want the image to repeat left to right across the page and not "down" the page. If thats the case...replace no-repeat with repeat-x
     
    tmeyer45458, Aug 28, 2007 IP
  4. Celoxdesign

    Celoxdesign Guest

    Messages:
    128
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Celoxdesign, Aug 29, 2007 IP
  5. Noddegamra

    Noddegamra Peon

    Messages:
    1,013
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #5
    
    body {
    background: #FFF url(bg.jpg) top left repeat-x;
    }
    
    Code (markup):
    I find that this website is great for CSS help/tutorials: http://www.tizag.com/cssT/
     
    Noddegamra, Aug 29, 2007 IP