SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    PHP Developer W1LL's Avatar
    Join Date
    Apr 2001
    Location
    Leicester, UK
    Posts
    459
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS Background Images

    To put a background image on a page you do this:

    background: url('image.gif') repeat-y left;

    but is there any way to have TWO background images? I've tried just putting the CSS in the body tag twice (one with "left", the other with "right") but that - as expected - doesn't work.

    Please help...

    - Will

  2. #2
    1-800-JMULDER JMulder's Avatar
    Join Date
    May 2001
    Location
    The Netherlands
    Posts
    1,745
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't think you can have two background images using CSS just like that. CSS defines the BODY tag with the information you entered, when you use it twice I think it will overwrite the previous one.

    You could merge the two backgroundimages into one image, but that would depend on how you want to use it. You can also use tables and use the table's background to display a background image.

    Hope that did it :\
    Jeroen Mulder

    w: www.jeroenmulder.com

  3. #3
    PHP Developer W1LL's Avatar
    Join Date
    Apr 2001
    Location
    Leicester, UK
    Posts
    459
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I knew it could be done with tables, and I don't want to merge the images because then they will **** up depending on monitor res.

    I was just wondering if it could be done in CSS - although doubted it would - because it would be much less script.

    - Will


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
  •