I'm trying to create an stylized underline and the results I pretend its something like this:
The goal I want to achieve:
As you can see, the border I want is rounded in its extremities. But using the border-bottom here what I get so far:
My code its like this:
HTML
<nav class="navbar">
<a id="index" href="#index">Home</a>
<a href="#">Pokedéx</a>
<a href="#">Legendaries</a>
<a href="#">Documentation</a>
</nav>
and CSS
.navbar > a {
font-size: 1.5rem;
margin: 0px 10px 0px 0px;
text-decoration: none;
color: #212121;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-weight: 400;
}
.navbar > a:target {
border-bottom: 4px solid #212121;
}
So what I want to know is if there's a way to make the borders of a border-box (whether they are bottom, top, right, left, doesn't matter) rounded or there's a better approach to style this underline? How would you do it?
Thank you very much.