I've been struggling to figure this out. Is there a way to make the image element responsive when resizing the percentage div window?
css
div{
width:60%;
height:400px;
}
div > img{
width:100%;
height:100%;
min-height:100%;
min-width:100%;
background:tomato
}
html
<div>
<img src="" alt="" />
</div>
Appreciate your help!