Height of image with fixed aspect ratio based on container height, not width

So I pretty much always want my images to have a fixed aspect ratio but when you check this box, the new responsive engine only allows you to chose the width of the element based on the container width, not container height. I would like a way to be able to keep the aspect ratio the same but specify the height based on the container height.

Anyone have any tips on how to get around this?


1 Like

Did you find a solution to this?

No I didn’t. I was somewhat able to achieve what I wanted based on setting up a bunch of conditionals (i.e. if page width is between X and Y then set picture width % to some value and if page width is between Y and Z set picture width % to some other value, etc). Quite cumbersome but it got my result. Would love if bubble implemented the option to set by container height as well.