Is there a way to create space between the border (underline hover effect) and have the color of the line be red?
a {
text-decoration: none
}
li {
display: inline;
}
li:hover {
text-decoration: underline;
}
<li><a href="">
abc
</a></li>
<li><a href="">
def
</a></li>
<li><a href="">
ggg
</a></li>
<li><a href="">
hello
</a></li>