my question is almost exactly the same as: How do I get this CSS text-decoration override to work?. But I see that the question is 7 years old and I wonder if we have any method of achieving this now?
Basically I have a structure which looks like this:
<a href='abc'>
This is underlined <span>But not this.</span>
</a>
I want only the text under span
to not be underlined. I understand that I can use border bottom and achieve this. Or remove underline from the a
tag and insert the text which I want underlined in a span
.
I just want to know if there is a way now after 7 years to override text-decoration: underline
in a child element.