I am currently working on a design that involves a button with multiple options. Here is the CSS code for the button:
.menu-main-window {
position: absolute;
top: 5px;
bottom: 5px;
left: 0px;
right: 0px;
font-size: 0;
}
.btn-tlm:hover .tlm-options {
display: table;
}
.btn-tlm:hover .menu-text {
display: none;
}
.tlm-options {
height: 100%;
position: absolute;
display: none;
top:0;
bottom: 0;
text-align: center;
width: 100%;
background-color: rgba(255, 255, 255, 0.75);
color: #0089c8;
border-radius: 20px;
transition: all 250ms ease-in-out;
}
.tlm-options div {
display: table-row;
font-size: 12px;
border-bottom: 1px solid #0089c8;
color: black;
transition: all 250ms ease-in-out;
}
.tlm-options div:last-child div {
border-bottom: none;
}
.tlm-options div div {
display: table-cell;
vertical-align: middle;
}
.tlm-options div div a:hover {
text-decoration: none;
}
.tlm-options div div a:visited {
color: inherit;
}
.tlm-options div:hover {
color: white;
background-color: rgba(0, 0, 0, 0.3);
font-family: NewJuneBold;
}
.menu-btn {
/* Repeat styles from original code */
}
<div class="menu-main-window">
<div class="menu-item-div-top">
<div class="menu-btn btn-tlm" style="background-image: url('http://icons.iconarchive.com/icons/mazenl77/I-like-buttons-3a/512/Cute-Ball-Go-icon.png'); background-size: cover;">
<div class="menu-text">MENU</div>
<div class="tlm-options">
<div>
<div> <a href="../somewhere">Option1</a>
</div>
</div>
/* Reproduce this block of codes for Option2 to Option4 */
<div>
<div> <a href="../somewhere">Option4</a>
</div>
</div>
</div>
</div>
</div>
</div>
My goal is to make the entire area of each option a clickable link when hovering over them. How can I achieve this functionality?