JSFiddle - React, Tailwind, and code Playground
by Vladymyr Shevchuk
HTML
<div id="menu">
<ul id="menu-list">
<li id="home"><a href="#">Home</a>
</li>
<li id="townoffice"><a href="#">Town Office</a>
</li>
<li id="busines"><a href="#">Business</a>
</li>
<li id="residents"><a href="#">Residents</a>
</li>
<li id="tourists"><a href="#">Tourists</a>
</li>
</ul>
</div>
CSS
#menu {
outline: 1px solid red;
}
#menu ul {
padding: 0;
display: table;
width: 100%;
}
#menu-list li {
height: 45px;
width: 180px;
list-style: none;
display: table-cell;
text-align: center;
font-family: arial;
font-size: 14px;
margin-right: 2px;
}
#menu-list li a {
display: block;
height: 100%;
padding-top: 13px;
color: #ffffff;
text-decoration: none;
background-color: #f69b58;
}
#menu-list li:not(:last-child) {
padding-right: 2px;
}
#menu-list li:active {
color:black;
background-color: #3EAEE9;
}
#menu-list li a:hover {
background:#3eaee9;
}
#menu-list li.current {
background-image: -webkit-linear-gradient(top, rgb(7, 80, 158), rgb(6, 101, 243));
background-color: #3EAEE9;
}