Don't know why.
In every css tutorial you can find you see something like this:
.container {
position:relative;
}
.subblock {
position:absolute;
top:20px;
left:20px;
}
And it works fine (for them). But it doesn't seem to work when using an image.
<div class="container"><img class="subblock" src="" alt="" /></div>
The img just jettisons itself to the top of the screen, outside and far away from the container block.
I've messed around with all the display modes and tried using more and more sub divs and doing google searches on this. I really need to absolute position an img to a div.
In fact, what I really need to do is absolute position TWO images inside a div and use z-index to put one image over the other. Or in other words, using the <img> tag (can't use background images) I need one image over the top of another, but inline to the document inside my layout divs.
Any ideas? I must be missing something.