Force div to have mutual height and width with inner img

ths1002

New Member
After messing with a lot of different options, I've decided to create a simple 16_9.jpg (16x9) and then put it inside the div with to force the div to have my ideal proportions, but it seems that the div doesn't care about its inner elements scaled in %. I may affect the div size with img height="100px" for example, but it stops working when using percents.And it seems that it's my last resort, as I have to make a fixed-height layout, what results in an unknown exact width - I have to rely on the proportions only.
 
Top