Need to access containers without a handle

Hi,

In the product-images block, I need to target a container that is between two elements that have a CSS handle:
image

Since several CSS selectors were deprecated, I cannot access the div with class relative or the next one, which I would do by using operators like >. Is there a workaround for specific cases where we would need to do this?

Hi Daniel,

The only workaround I know for that is to create a new custom component just to hold these CSS selectors.
Here’s an example:

You can use this component within a global component like the header or somewhere else. It isn’t pretty, but it can help in some cases..

Hope I could help!