The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › opacity on background not on text !
Hello, I’m a new member I hope to be nice with you .. In fact I have a question in the CSS ..
Can I use on the background of the class “opacity” only without affecting the text? Example:
.alt1, .alt1Active {background-color: #99e0fc; opacity:0.6;}
When you do this be transparency on the background and the text “all the class” .. Is there a way?
Thanks ..
Sort of. You can use rgba or hsla.
example
background: rgba(0, 0, 0, .5);
This means I can not do what I want ?!
Thanks Mr.Christopher ..
You can but not using opacity.
Thanks Mr.Christopher for help ..