How can I apply a different opacity to a child element. In the example below it is working correctly, however 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>