In this example here im trying to make the parent to be more transparent without changing the opacity of the child.
<div>
<div className="larger-box">
<div className = "smaller-box">
</div>
</div>
here is my current css styling:
.larger-box{
width: 10rem;
height: 10rem;
background-color: red;
}
.smaller-box{
width: 2rem;
height: 2rem;
background-color: green;
opacity: 1 !important;
}
Is there a possible way to do that in css?