The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › DIV Opacity issue
I want a parent DIV as a container.
In that I want a DIV with a black background with a opacity of .60. I then want everything in that DIV to not adopt the .60 opacity.
How can I do this?
You could use rgba (or hsla) :
#element { background: rgba(0,0,0,0.6); }