1
How can I apply a different opacity to a child element. In the example below is working correctly, but the same code does not work with:
Chrome Version 71.0.3578.80
Firefox Quantum 63.0.
body {
    background: url('http://www.onoirtoronto.com/onoir/wp-content/uploads/website-bg.jpg') center no-repeat;
}
.pai {
    margin:  0 auto;
    background: rgba(0,0,0, .5);
    height: 200px;
    width: 200px;
}
.filho {
    vertical-align: middle;
    margin: 0 auto;
    background: #fff;
    height: 100px;
    width: 100px;
    opacity: 1 !important;
}<div class="pai">
    <div class="filho">
    </div>
</div> 
						
One dealing with the same subject, but with a different property https://answall.com/questions/264862/como-fazer-scale-de-umadiv-sem-alterar-os-elements-child
– hugocsl
One more but with another property tb https://answall.com/questions/346258/fundo-com-blur-e-div-do-meio-sem/
– hugocsl
The problem is that the rgba is also applying opacity to children, I had already found these posts and tried to solve through the same!
– Rech
But I didn’t see anything with RGBA in that code there you posted... Or else of more details of your problem
– hugocsl
I didn’t take rgba into account because I thought it wasn’t the solution, I changed it in jsfiddle with rgba and it worked on the jsfiddle page, but the same example doesn’t work in firefox or Chrome.
– Rech