www.webdeveloper.com
Results 1 to 3 of 3

Thread: [RESOLVED] Multiple Backgrounds for "Body"

  1. #1
    Join Date
    Feb 2007
    Posts
    132

    resolved [RESOLVED] Multiple Backgrounds for "Body"

    Hi there

    I need to create 2 backgrounds for my website. One needs to repeat-x on the top:

    background-image:url(images/topBackrepeat.jpg);
    background-repeat:repeat-x;

    The other needs to tile the rest of the back:

    background-image:url(images/Backrepeat.jpg);
    background-repeat:repeat;

    I have attached the design. These 2 backgrounds need to sit at the back and not effect the middle part of my design.

    How can I do this?

    Thanks!
    Leighchic
    Attached Images Attached Images

  2. #2
    Join Date
    Jun 2003
    Location
    here
    Posts
    4,551
    this is more of a CSS than HTML problem, but I think it could be achived simply by having a main content div(like you really should have anyway, given some IE versions problems with margins and the body), applying your first background to the body and the second to the container div.
    If you are using PHP please use the [PHP] and [/PHP] forum tags for highlighting...
    The same applies to HTML and the forums [HTML][/HTML] tags.

  3. #3
    Join Date
    Feb 2007
    Posts
    132
    Thank you, it worked.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles