I'm trying to figure out how to make a div with a background image of 100% width always maintain the aspect ratio of the image for its height. Is there a way to achieve this?
In simpler terms, when I resize the page, I want the div to scale down while keeping the same height as the background image.
I hope that explanation is clear,
thank you