As I have one div with an img tag inside, I am looking for a way to place the background of that div on top of the image. While I could use another div with absolute positioning to achieve this, I'm curious if it's possible to accomplish with just a single div.
Here is my code snippet:
<div id="container">
<img src="image.jpg" />
</div>
EDIT Apologies for the confusion in my explanation earlier. What I actually want is to overlay the background over the image, and as far as I can tell currently, it seems impossible without an additional div.