I have an interesting problem I am trying to solve. I have an anchor element with some span text element inside
.link {
text-decoration: none;
}
.link:hover {
text-decoration: underline;
}
<a href="#" class="link">Hi <span class="inside-text">there</span> dude.</a>
What I'm trying to remove the underline
on the span .inside-text
and just underline the text outside the span
on hover. I tried this
.text-inside {
text-decoration: none !important;
}
but it doesn't seem to solve the problem