Forum Academy Marketplace Showcase Pricing Features

How to set image element width as 100% and height as auto?

Hi everyone, hope someone can help,

So as the title says, I’m looking for ways to set the width of an image to 100% and height to automatic that allows any image height to extend along the bottom of the screen

Right now my image elements have a locked aspect ratio of 16w by 9h, which is okay for my current app’s main use case, but i have a conditional for another image element to be shown with the dimensions I mentioned prev.

I tried to do it via custom CSS but can’t seem to override bubble’s code even with the “!important” added to my custom code. I might be doing it wrong…

Really hope someone can help!