How do I make an element with a set aspect ratio fill as much available space as possible without overflowing?
I have a div. I want to enforce its aspect ratio. As long as its set aspect ratio is preserved and my div is neither wider nor higher than the available vertical / horizontal space, I want it to occupy this space to the greatest extend possible.