I have a gray box with a low opacity and inside it a word, while applying the selector 'not' on the main 'div' to cancel the opacity of the word that is in a 'p' tag surrounded by this 'div' the 'not' selector does not do its job and the word continues with the low opacity, I want to make the word not get the opacity settings of the main div, without removing the 'p' tag from it, / p>
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>