In the design, I am looking to add overlay images to the menu while ensuring that the entire menu item is clickable, not just a portion of it.
Currently, only the top part of the button is clickable in the implementation found at
.elem {
display: inline-block;
width: 100px;
height: 100px;
background: #777;
transition: .3s;
}
.elem:hover {
cursor: pointer;
background: #f77;
}
.higher-box {
position: relative;
margin-top: -50px;
width: 308px;
height: 100px;
background: rgba(0, 0, 255, .9);
z-index: 1;
}
<div class="lower-box">
<a href="#"><div class="elem"></div></a>
<a href="#"><div class="elem"></div></a>
<a href="#"><div class="elem"></div></a>
</div>
<div class="higher-box"></div>
Is there a way to make the gray blocks clickable in the overlapping area with the blue block?