0
HTML CSS - Filter: brightness()
On using filter: brightness(50%) to background image, the image has reduced its brightness as expected. However , it also affects the visibility of heading and text over it. How can we prevent this from affecting the text ?
7 Respuestas
+ 6
Share your code
+ 1
You can use rgba a is alpha and you can use it for some special effects!
0
Do you mean that there is text on the image or next to the image?
0
Its on the image
0
So the text is linked to the image right?
0
Its within the same div container. I probably need to add a different div outside the image and use aboslute positioning to make the text appear on image. Not sure if there is a better approach
0
It is my project