I have a element with a lot of other elements in it like headings, images,videos etc. I'm trying to make the background-color of the to a transparent antique white (using the opacity property), but then the images and videos inside the become transparent as well. How do I bypass that reaction?
Asked
Active
Viewed 33 times
-1
-
See here how to make a [Minimal, Complete, and Verifiable example](https://stackoverflow.com/help/mcve). – cosinepenguin Oct 04 '17 at 16:46
1 Answers
0
Let's try this:
body{
color:black;
}
body::after {
content: "";
background: url('image') no-repeat center center fixed;
background-size: cover;
opacity: 0.6;
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: -1;
}

Alice
- 281
- 1
- 3
- 20