1
I have a gray box with a low opacity and inside it a word, when applying the 'not' selector to the main 'div' to cancel the opacity of the word that is in a "p" tag surrounded by that 'div' the 'not' selector does not do its function and the word continues with the low opacity, I intend to make the word does not take the opacity settings of the main div, without removing the tag "p" from inside it, ??
body{background-color:#6C9;}
.bl:not(p){ position: relative;
z-index:-1;
width:300px;
opacity:0.5;
height:200px;
background-color:#CCC;
border:1px solid #000;
}
p{font-size:25px;
font-weight:bold;
opacity:1;
}
<div class="bl">
<p>BLOCO</p>
</div>