I am trying to overlay 2 images but they both need to be responsive in height and size (i.e. the parent DIV is not a fixed size (specifically a play button over a thumbnail).
Example...
<div class="img-wrap">
<div class="play-button">Play Button Img</div>
<div class="thumb-image">Thumbnail Video Image</div>
</div>
Normally I would set height, width and position relative on .img-wrap and then set position absolute and z-index of .play-button and .thumb-image to allow the play button image to sit nicely over the thumbnail.
The problem I have is the thumbnail is responsive so I am unable to set the height and width of .img-wrap. I can still sett he z-index OK but without setting a height everything below is despairing underneath it.
Is there is a fix to this?
Use the following technique:
References