JSFiddle - React, Tailwind, and code Playground
by David Kyle
HTML
<div class="wrapper">
<ul id="vitravleNav" name="vitravleNav">
<li><span><a href="#">Test 1</a></span></li>
<li><span><a href="#">Test 2</a></span>
<ul class="inner">
<li><span><a href="#">Test 3</a></span></li>
</ul>
</li>
<li><span><a href="#">Test 4</a></span>
<ul class="inner">
<li><span><a href="#">Test 5</a></span></li>
<li><span><a href="#">Test 6</a></span></li>
</ul>
</li>
</ul>
</div>
CSS
.wrapper {
width: 80%;
min-width: 500px;
display: table;
}
UL#vitravleNav LI > SPAN {
margin: 0px 0px;
letter-spacing: -0.5px;
font-size: 16px;
text-shadow: 0 -1px 3px #202020;
width: 100%;
height: 100%;
display: inline-block;
background-color: #0099FF;
}
.inner SPAN {
background-color: #00FF99 !important;
}
ul {
display: table-row;
}
#vitravleNav > li {
}
UL.inner li {
display: table-cell !important;
min-width: 80% !important;
width: 40%;
}
.inner {
width: 100%;
display: table-row-group;
}
#vitravleNav li {
text-align:center;
vertical-align:middle;
border-right: 1px solid white;
border-left: 1px solid white;
list-style-type: none;
display: table-cell;
}
#vitravleNav > SPAN {
display: table-cell;
height: 100px;
}
#vitravleNav li SPAN:hover {
box-shadow: inset 0 1px 4px 4px white;
}
#vitravleNav li a {
color: white;
text-decoration: none;
text-align: center;
display: block;
line-height: 50px;
outline: none;
padding-top: 20px;
}