Make background image a component property

Hi, is there a way to set a property on a component’s section background image ? I made a header as a component because I use it on all my pages but I want to change the background picture to match the page.

Thanks


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

1 Like

No, don’t think so. You might be better off by adding an image with a lower z-index and position absolute instead. Don’t forget to make the parent section position relative!

image

It couldn’t be that z-index -1 doesn’t work well with other elements due to it being too far back. In that case you could give the other elements in the section z-index 2 and the background image z-index-1 for example.

1 Like

It works, thank you so much!