- This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
HELLO good people of CSS Tricks.
I’m a new student learning HTML/CSS/JS and have spend the last few hours (yeah, that long) trying to figure out why this isn’t working in my code:
Thank you for reading–again, I’m new to this so if I’ve left anything out, please let me know.
-a grateful student.
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
)