JSFiddle - React, Tailwind, and code Playground
by Avijit Kumar
HTML
<div class="menu topMenu">
<ul class="topMenuOptions">
<li><span>111</span></li>
<li><span>222</span></li>
<li><span>333</span></li>
</ul>
CSS
.topMenu {
text-transform: uppercase;
background-image: url('images/1.png');
position: absolute;
height: 88px;
width: 400px;
background: lightcoral;
/* margin-left: 332px; */
padding-top: 30px;
}
.topMenuOptions {
padding: 0;
margin: 0;
margin-left: 155px;
list-style-type: none;
}
.topMenuOptions li {
cursor: pointer;
padding: 10px;
color: white;
font-size: 14px;
display: inline;
border-bottom: 3px solid transparent;
}
.topMenuOptions li:hover:nth-child(1) {
background: url('http://php.quicoto.com/wp-content/uploads/2013/06/css3.jpg') center center no-repeat;
background-position: 0px 0;
background-size: contain;
color: transparent;
border-bottom: 3px solid #fff;
}
.topMenuOptions li:hover:nth-child(2) {
background: url('http://php.quicoto.com/wp-content/uploads/2013/06/css3.jpg') center center no-repeat;
background-size: contain;
background-position: 0px 0;
color: transparent;
border-bottom: 3px solid #fff;
}
.topMenuOptions li:hover:nth-child(3) {
background: url('http://php.quicoto.com/wp-content/uploads/2013/06/css3.jpg') center center no-repeat;
background-size: contain;
background-position: 0px 0;
color: transparent;
border-bottom: 3px solid #fff;
}