JSFiddle - React, Tailwind, and code Playground
HTML
<div id="vmenu">
<ul>
<li style="cursor: pointer; list-style-type:none; "><a href="#"><h3>Sales and Distribution</h3></a></li>
<li class="selected" style="cursor: pointer; list-style-type:none;"><a href="#"><h3>Inventory Management</h3></a></li>
<li style="cursor: pointer; list-style-type:none;"><a href="#"><h3>Export Management</h3></a></li>
<li style="cursor: pointer; list-style-type:none;"><a href="#"><h3>Material Management</h3></a></li>
<li style="cursor: pointer; list-style-type:none;"><a href="#"><h3>PoS (Point of Sales)</h3></a></li>
<li style="cursor: pointer; list-style-type:none;"><a href="#"><h3>Secondary Sales</h3></a></li>
<li style="cursor: pointer; list-style-type:none;"><a href="#"><h3>Sales MIS</h3></a></li>
</ul>
</div>
CSS
#vmenu {
margin-left: -35px;
list-style: none;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.08);
-moz-box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.08);
box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.08);
}
#vmenu li ul{
margin: 0;
list-style: none;
}
#vmenu li ul li a{
background: #f9f9f9;
color: #999999;
padding: 10px 15px 10px 30px;
}
#vmenu li a {
display: block;
margin: 0 0 -1px;
padding: 10px 15px;
border: 1px solid #dddddd;
border-bottom-color: #efefef;
border-top-color: #efefef;
color: #777777;
background: url(framework/images/arrow5.png) no-repeat 94% 15px;
}
#vmenu li:first-child a {
-webkit-border-radius: 3px 3px 0 0;
-moz-border-radius: 3px 3px 0 0;
border-radius: 3px 3px 0 0;
border-top-color: #dddddd;
}
#vmenu li:last-child a {
-webkit-border-radius: 0 0 3px 3px;
-moz-border-radius: 0 0 3px 3px;
border-radius: 0 0 3px 3px;
border-bottom-color: #dddddd;
}
#vmenu li.selected a, #vmenu li.selected a:hover {
position: relative;
z-index: 2;
padding: 11px 15px;
border: 0;
font-weight: 700;
background-color: #61be8b;
background-image: url(framework/images/arrow5_white.png);
background-repeat: no-repeat;
background-position: 94% 15px;
color: #ffffff !important;
-webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
-moz-box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
}
#vmenu li.selected ul li:first-child a,
#vmenu li.selected ul li:last-child a{
-webkit-border-radius: none;
-moz-border-radius: none;
border-radius: none;
}
#vmenu li a:hover {
background-color: #61be8b;
}
JavaScript
jQuery(document).ready(function($){
//url call for tabs
var contentLocation = window.location.href.slice(window.location.href.indexOf('?') + 1).split('#');
var contentLocator = contentLocation[1];
//settings
var $items = $('#vmenu > ul > li ');
var initialindex = 0;
if(contentLocation[1]) {
initialindex = parseInt(contentLocation[1])-1;
}
$items.click(function() {
$items.removeClass('selected');
$(this).addClass('selected');
var index = $items.index($(this));
$('#vtabs').hide().eq(index).fadeIn();
}).eq(initialindex).click();
});