Apply ID (or class) to the img not the bubble div element?

Hi All,

It seems impossible to apply css to the actual static image rather than Bubble’s img element.

For example, applying object-fit to an image is only possible by targeting the HTML img tag, which of course effects every image on the page.
Applying an ID or even class via the Classify plugin does not work as it targets the surrounding Bubble image element.
Does anyone have a solution?

You can. The correct CSS selector will be #attributeid > img with the attribute id set to the image element

Fantastic answer. Thank you!

1 Like

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