I have tried removing the underline using text-decoration:none all over the place but I cannot get it to remove itself.
This is my HTML...
.dropdown {
position: relative;
display: inline-block;
text-decoration: none;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 220px;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
z-index: 1;
text-decoration: none;
}
.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
text-decoration: none;
}
.dropdown-content a:hover {
background-color: #f1f1f1;
text-decoration: none;
}
.dropdown:hover .dropdown-content {
display: block;
text-decoration: none;
}
.dropdown:hover .dropimg {
background-color: #3e8e41;
text-decoration: none;
}
img.dropimg {
text-decoration: none;
}
td.table_data.dropdown .image-link {
text-decoration: none;
}
a:link {
text-decoration: none!important;
}
a:hover {
text-decoration: none;
box-shadow: none;
}
td.table_data.dropdown a.image-link {
text-decoration: none!important;
}
<td class="table_data dropdown">
<a class="image-link" href="/somelink"><img class="dropimg" src="img/address_book.png" alt="contact" height="25px" width="25px">
<div class="dropdown-content">
<a href="#">Name: Blah</a>
<a href="#">DoB: Blah2</a>
</div>
</a>
</td>
Perhaps I'm not being specific enough with my CSS but I don't know where to go from here. Naturally, I'd like it to work on most modern browsers. We typically use IE, Edge, Firefox and Chrome in house where this site is deployed.
Any advice would be most appreciated; thanks.