Here is the code I am working with:
<div>
<div class="inner"></div
<img src="blabla" />
</div>
My goal is to make the .inner
div 100% width and 100% height of its parent div, which is dependent on the dimensions of the img
inside.
Can this be achieved using CSS only? I prefer to avoid a JavaScript solution. Thank you