Advanced Search

Results 1 to 3 of 3

Thread: having small problem with background.

  1. #1
    Join Date
    Feb 2009
    Posts
    159
    Thanks
    60
    Thanked 3 Times in 3 Posts

    Unhappy having small problem with background.

    the site I am working on is:
    www.marie-joe.110mb.com

    I am trying to get it so that my image repeats down the page but only repeats in the middle.

    I am also trying to make it so that the background color is black.

    I got the image to repeat. I got the image in the middle.
    The problem is the image as repeated it's self going on the horizontal. I don't want it to do that. I want the black background to show in that area.

    The css I got is:

    html {height: 100%;}
    body {
    background:#000000;
    background-image:url(../images/mainbg.png);
    margin: 0 auto;
    height: 100%;
    border: none;
    background-repeat: y-repeat;
    background-position: center;
    }

    Anyone know what's going on?
    Last edited by robin9000; 03-05-2009 at 01:00 PM.

  2. #2
    Join Date
    Apr 2008
    Location
    Limoges, France
    Posts
    395
    Thanks
    13
    Thanked 61 Times in 61 Posts

    Default

    I think it is repeat-y, not y-repeat.

    Also, you could write:

    Code:
    background: #000 url('/images/mainbg.png') center top repeat-y;
    If you want.

  3. #3
    Join Date
    Feb 2009
    Posts
    159
    Thanks
    60
    Thanked 3 Times in 3 Posts

    Default

    Thanks, I fell silly, very goofy mistake.

    I decided to go with a dark green backgorund because the black was not fading right.
    Last edited by robin9000; 03-05-2009 at 01:08 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •