I have a div where I want to leave 2 images on top of each other, and only the image checked in an input will be visible, while the legend of the visible image should position itself to the right of the image. However, I'm trying to leave the container div with position:relative;
and the images with position:absolute
, so the images are absolute relative to div, but I can not. the images "flee" from the div, the div is left with nothing inside and the content is just below.
Here's what I have: link
Could you help me?