As you can see, the opacity of the button
is greater than that of the div
, but even so it is in the same opacity, how could I change it ??
.div1
{
width: 100px;
height: 100px;
background: #6a6a6a;
opacity: 0.5;
}
.button
{
width: 50px;
height: 50px;
margin-left: 25px;
margin-top: 25px;
opacity: 1.0;
}
<div class="div1">
<input type="image" class="button" src="https://image.freepik.com/free-icon/users-group_318-48680.jpg">
</div>