Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS background-image will not change opacity or color Reply To: background-image will not change opacity or color

#264339
Paulie_D
Member

You have it mostly right (you can’t affect the opacity of a background-image) only an element (or pseudo-element).

Unfortunately, changing the opacity also affects the stacking order (z-index) so you have to tell the background layer so be one level down (z-index:-1)

https://codepen.io/Paulie-D/pen/aEmPMV?editors=1100#0