Fit image to width

This might be a stupid question but how do you fit element to width, I want to put a logo as the top of the page with a fixed height and the width to be automatic.

Best I can get is this

Screenshot 2023-06-21 at 8.40.32 pm

It’s a bit weird, dynamic images (from db) have an option to rescale. You want the zoom option.

For static images (uploaded via the image element) like logos, it’s missing. I would use the html element and some CSS.

As a workaround, you could grab the logo from the Bubble DB and it would show the rescaling options, but meh. CSS.

Another option is to put image url into an item of an option set and then use it as dynamic source with rescale. That’s a bit better than using database, but still a hacky way.

This topic was automatically closed after 70 days. New replies are no longer allowed.