JSFiddle - React, Tailwind, and code Playground
HTML
<UL class="TabControl tabs"><LI class=active><SPAN href="/search/Funds" jQuery1284738174807="20">Funds (1320)</SPAN> </LI>
<LI><SPAN href="/search/Companies" jQuery1284738174807="21">Companies (1)</SPAN> </LI>
<LI><SPAN href="/search/Groups" jQuery1284738174807="22">Groups (0)</SPAN> </LI>
<LI><SPAN href="/search/Categories" jQuery1284738174807="23">Categories (0)</SPAN> </LI>
<LI><SPAN href="/search/Identifiers" jQuery1284738174807="24">Identifiers (0)</SPAN> </LI></UL>
CSS
ul.tabs
{
margin: 0;
padding: 0;
float: left;
list-style: none;
height: 22px; /*--Set height of tabs--*/
border-bottom: 2px solid #96938A;
width: 100%;
color: #4781aa;
}
ul.tabs li
{
float: left;
margin: 0;
padding: 0;
height: 21px; /*--Subtract 1px from the height of the unordered list--*/
line-height: 21px; /*--Vertically aligns the text within the tab--*/
border-left: none;
margin-bottom: -1px; /*--Pull the list item down 1px--*/
overflow: hidden;
position: relative;
background: #E1D4C3;
margin-right: 3px;
}
ul.tabs li a
{
text-decoration: none;
display: block;
font-size: 1.2em;
padding: 0 10px;
border: 1px solid #E9DECF; /*--Gives the bevel look with a 1px white border inside the list item--*/
outline: none;
}
ul.tabs li a:active
{
background: #96938A;
color: #fff;
}
ul.tabs li a:hover , ul.tabs li:hover
{
background: #96938A;
color: #fff;
border-bottom: 1px solid #96938A;
}
.TabControl span, .WidgetTab span
{
cursor: pointer;
padding: 0 10px;
font-size: 1.2em;
}
html ul.tabs li.active, html ul.tabs li.active a:hover
{
/*--Makes sure that the active tab does not listen to the hover properties--*/
background: #96938A;
color: #fff;
border-bottom: 1px solid #96938A; /*--Makes the active tab look like it's connected with its content--*/
}