JSFiddle - React, Tailwind, and code Playground
by Yaprak Ayazoğlu
HTML
<nav class="main-nav">
<a>
<button type="button" class="close">
<span aria-hidden="true">x</span>
</button>
Some Tab
</a>
</nav>
CSS
.main-nav {
width: 100%; }
.main-nav .active-link {
background-color: rgba(233, 231, 231, 0.34); }
.main-nav .active-link:after {
content: "";
position: absolute;
top: 100%;
left: 50%;
z-index: 1000;
border-top: 8px solid #ccc;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
margin-left: -8px; }
.main-nav a {
display: inline-block;
position: relative;
color: #444;
font-family: 'Gotham Rounded A', 'Gotham Rounded B', sans-serif;
font-weight: 500;
font-style: normal;
font-size: 1rem;
text-transform: uppercase;
border-right: 1px solid lightgray;
border-bottom: 1px solid lightgray;
padding: 0.7em 1em 0.7em 1em; }
.main-nav a:active {
background-color: rgba(233, 231, 231, 0.34); }
.main-nav a:hover {
cursor: pointer; }
button.close {
-webkit-appearance: none;
padding: 0;
cursor: pointer;
background: 0 0;
border: 0; }
.close {
float: right;
font-size: 17px;
font-weight: 700;
line-height: 1;
color: #000;
text-shadow: 0 1px 0 #fff;
filter: alpha(opacity=20);
opacity: .2; }