I have a container with an opacity of 0.8. At the background, I have an image that shines through the content div. Now, I have a photo of my client in this
This might help others who would want to use opacity, preventing a certain child element from getting opaque.
You can use :not()
Selector.
Take this sample.
SAMPLE 1.
I am not Opaque.
Blah! Blah! Blah!
I am Opaque.
Blah! Blah! Blah!
I am Opaque.
Blah! Blah! Blah!
SAMPLE 2.
I am not Opaque.
Blah! Blah! Blah!
We are all Opaque.
Output: