Results 1 to 4 of 4

Thread: Repeating foreground picture

  1. #1
    Join Date
    Nov 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Repeating foreground picture

    This is the same problem as someone else. I have a gif image(http://www.boomspeed.com/sfhelpers/backgrounds/83.gif#) that I put on my xanga, and I want to make in show up on top of a different background image(which I think just needs to be transparent). The other problem, is when I use the code I have now(below), the gif only covers the right side of the page. I don't know how to control the width. Does anyone know how to fix these problems? I know its just a matter of writing the code correctly, but I don't know how.

    <style type="text/css">
    html {
    background:#fff;
    background-image: url(img.gif);
    background-repeat: repeat-y;
    background-position: left top;
    height:100%;
    margin:0;padding:0;
    }
    body {
    background-image: url(img.gif);
    background-repeat: repeat-y;
    background-position: right top;
    height:100%;
    margin:0;padding:0;
    }
    </style>

  2. #2
    Join Date
    Nov 2004
    Location
    Here to often...
    Posts
    53
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi,

    try putting your all your code in the body element and remove the html element, body is always more reliable. Also sometimes code works better if you put in a p element but dont forget to include your <p></p> in your html page!

    regards

    Donna x

  3. #3
    Join Date
    Oct 2004
    Location
    Texas
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    background-repeat: repeat-y; repeat-x

  4. #4
    Join Date
    Dec 2004
    Location
    Windsor, UK.
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    background: url(img.gif) #fff repeat-y repeat-x top;

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
  •