I simply can't figure out why the <div id="icon-menu">
still has the same opacity as the ancestor <div class="box">
. As far as I know, according to CSS specificity, that shouldn't happen.
<div class="jumbotron">
<div class="box">
<div id="icon-menu" style="opacity: 1">
<i class="fa fa-bars"></i>
Menu
</div>
</div>
</div>
This is my CSS:
.box {
background-color: #000000;
height: 60px;
min-width: 100%;
opacity: 0.5;
}
#icon-menu {
opacity: 1;
padding-left: 75px;
position: fixed;
color: #ffffff;
font-size: 40px;
}
As you can see, I tried some ways to change the opacity of the <div id="icon-menu:>
back to 1, but nothing has an effect. Do you have a clue what's wrong?