How to put non-transparent text inside a transparent div? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to put non-transparent text inside a transparent div?

I use opacity 0.9 for the div. All the text inside it also become transparent.

2nd Jun 2018, 12:24 PM
Pukhramabam Prameshwormani Singh
2 Answers
2nd Jun 2018, 12:25 PM
Hatsy Rei
Hatsy Rei - avatar
+ 3
Child div CSS cannot override parent div opacity setting. Use background color to set opacity instead. https://code.sololearn.com/Wn57F1SPbiAT/?ref=app
2nd Jun 2018, 1:00 PM
Calviղ
Calviղ - avatar