SyntaxFix
Write A Post
Hire A Developer
Questions
You just need to specify text-decoration: underline; with pseudo-class :hover.
text-decoration: underline;
:hover
<span class="underline-on-hover">Hello world</span>
.underline-on-hover:hover { text-decoration: underline; }
I have whipped up a working Code Pen Demo.