Click to See Complete Forum and Search --> : overlay image on top??


expat
07-09-2008, 11:15 AM
if i use divs

Quote:
.image1{background-image: (url); }
.image2{background-image: (url); }

<div class="image1">
<div class="image2"></div>
</div>
how do i make it so that the image 2 sticks over the top and ABOVE image1 ie image 2 is twice the height of image1

dtm32236
07-09-2008, 02:44 PM
i'm not sure i understand what you're trying to do here, but you could play with z-index (make image2 a lower z-index than image1) and maybe absolute positioning with a -50% margin (?)... I don't know if that works for background images though.