multiple backgrounds

Discussion in 'CSS' started by a!!!!1, May 4, 2008.

  1. #1
    http://myspacelayoutninja.net/ i want to put a background texture to the left and right of the content and have it going from the bottom of the header banner to the footer, and have the content background solid white. obvious answer would be to make the content background white and use the texture as the background image

    BUT that wont work because: the header banner is a background image (http://myspacelayoutninja.net/wp-content/themes/t9/img/bg2.jpg) because i wanted the gradient at the top and i wanted to make sure it filled the entire window without cutting off. so is there any way to add another background somehow?
     
    a!!!!1, May 4, 2008 IP
  2. larschla

    larschla Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Your link does not work.
    Please provide a working link and I'll have a look.
     
    larschla, May 9, 2008 IP
  3. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'm not sure I understand either without seeing visually.
    But you could set a background image to the top of whole page (the body)
    Which in CSS would be:
    body { background-image: url(blah.com/blah.jpg); background-position: top; }
     
    wd_2k6, May 9, 2008 IP
  4. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yeah, you can put your texture on the body. The background image that you have "in the header" should really be in the header. Every element, not just the body, may be given a background image. So if there's a div or something out there called #header then move the header background image to that, and now you have a place for the new image.
     
    Stomme poes, May 9, 2008 IP
  5. burhankhan

    burhankhan Well-Known Member

    Messages:
    489
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    108
    #5
    Multiple backgrounds are not allowed in CSS, however you need to use some tweak.
    Multiple Backgrounds in CSS is clear way to use it.
     
    burhankhan, May 13, 2008 IP