1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Is it possible to use two backgrounds in one div?

Discussion in 'HTML & Website Design' started by virtualmisc, Feb 16, 2010.

  1. #1
    Hello Friends


    Is it possible to use two backgrounds in one div?
    One of the background picture would be bottom-up corner, and another drift all div...
    On both the overall picture will be posted on the text. Thus, pictures may not be on a different div

    Thanks
     
    virtualmisc, Feb 16, 2010 IP
  2. AlternativeWeb

    AlternativeWeb Peon

    Messages:
    140
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Your post was a bit confusing, but I don't think you can have 2 images using a single div. I am not too sure what you are trying to do, but you can always try using a second div with absolute values.
     
    AlternativeWeb, Feb 16, 2010 IP
  3. thirdhokage

    thirdhokage Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    nope. not allowed
     
    thirdhokage, Feb 16, 2010 IP
  4. AlternativeWeb

    AlternativeWeb Peon

    Messages:
    140
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    background images, I meant, not just images lol
     
    AlternativeWeb, Feb 17, 2010 IP
  5. jacktheblack

    jacktheblack Peon

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    not allowed
     
    jacktheblack, Feb 17, 2010 IP
  6. yourthemes

    yourthemes Peon

    Messages:
    55
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    It is somewhat.

    The way I do it is:

    <div style="background-image:url('')">
    <span style="background-image:url('')">
    </span>
    </div>

    Then you position the images however you want.
     
    yourthemes, Feb 17, 2010 IP
  7. AssistantX

    AssistantX Peon

    Messages:
    173
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #7
    It is possible to have multiple background images with CSS 3. The technique is currently supported by the final releases of Google Chrome, Firefox, and Safari. The technique is also supported by the beta release of Opera. It is not supported IE.

    To get information on how to have multiple background images with CSS 3, you may view this link.
     
    AssistantX, Feb 17, 2010 IP
  8. tech_savvy

    tech_savvy Peon

    Messages:
    435
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    no it is not possible.
     
    tech_savvy, Feb 27, 2010 IP
  9. Grit.

    Grit. Well-Known Member

    Messages:
    1,424
    Likes Received:
    22
    Best Answers:
    1
    Trophy Points:
    110
    #9
    TO have two background images in a DIV will not be possible since you will already declare the background image value, the second image will conflict
     
    Grit., Feb 27, 2010 IP
  10. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #10
    Yes you can with CSS3 in any of the modern browsers (meaning not IE). You'll have to google for "css multiple background images" and the browser you want to know about to get that information.
     
    drhowarddrfine, Feb 27, 2010 IP
  11. typingmums

    typingmums Well-Known Member

    Messages:
    1,446
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    140
    #11
    good tip - i'll make a note of this one :)
     
    typingmums, Feb 27, 2010 IP