Picture this scenario: I have two images, one measuring 1px by 700px and the other 1px by 800px. Is there a way in CSS3 to set them as backgrounds for one div which will then have a total height of 1500px?
Can this be achieved with CSS3 alone?
div{
background: url(first_image.jpg) repeat-x, url(second_image.jpg) repeat-x;
/* ... */
}
I could combine these images in Photoshop, but I'm curious if there's a pure CSS3 solution.
Currently, I've created two separate divs each with its own background image, and they appear seamless when placed together. However, my issue arises when there's an element that needs to occupy the precise area where these two divs meet. Placing this element disrupts the layout. While I could use position: absolute to resolve this, I'd prefer to find an alternative approach.