JSFiddle - React, Tailwind, and code Playground
by niki4810
HTML
<ul>
<li>One</li>
<li class="active">Two</li>
<li>Three</li>
</ul>
CSS
ul { overflow: hidden; }
li {
background: #ddd;
border-bottom: 1px solid black;
display: block;
float: left;
list-style: none outside none;
padding: 8px 15px;
position: relative;
text-align: center;
width: 50px;
}
li.active,
li:hover { background: white; font-weight: bold; }
/*li.active:after,
li:hover::after {
background: white;
border: solid black;
border-width: 1px 1px 0 0;
bottom: -5px;
content: ' ';
display: block;
height: 10px;
left: 32px;
position: absolute;
width: 10px;
z-index: 99;
-webkit-transform: rotate(-45deg);
-webkit-transform-origin: 50% 50%; }*/