I came across an interesting underline effect that looks like this:

It's simple, but I can’t think of a way to achieve it without using additional HTML elements in the markup that will not be semantic. I am wondering if this can be achieved with css and without any additional elements. An effect is essentially a lower border / lower border that is smaller than the element and centered below it.
Here is my markup for navigation, where this effect will be used for current page links.
<nav id="navigation" class="right">
<ul>
<li> <a href="#">Home</a> </li>
<li> <a href="#">About</a> </li>
<li> <a href="#">Work</a> </li>
<li> <a href="#">Blog</a> </li>
<li> <a href="#">Contact</a> </li>
</ul>
</nav>
source
share