JSFiddle - React, Tailwind, and code Playground

by josangel555

HTML

<div class="head">logo</div>
<div class="wrap">
  <nav>
    <ul>
      <li><a href="#"><span>Home</span></a></li>
      <li><a href="#"><span>About</span></a></li>
      <li><a href="#"><span>Products</span></a></li>
      <li><a href="#"><span>FAQ</span></a></li>
      <li><a href="#"><span>Support</span></a></li>
      <li><a href="#"><span>Contact</span></a></li>
    </ul>
  </nav>
</div>
<div class="head"></div>

CSS

* {
	padding: 0px;
	margin: 0px;
	list-style-type: none;
	font: 1em/1em Arial, Tahoma, Helvetica, sans-serif;
}
.head {
	background: #633;
	padding: 0.5em;
	color: #FF0;
	font: 2em "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
}
.wrap {
	margin: auto;
	max-width: 960px;
}
nav {
	display: table;
	background: #FCC;
	width: 100%;
}
nav ul {
	display: table-row;
	background: #FC9;
}
nav ul li {
	display: table-cell;
	background: #FC6;
}
nav ul li a {
    padding-left: 1em;
    padding-right: 1em;
	background: #CCC;
	color: #000;
	text-decoration: none;
	height: 3em;
	position: relative;
	border-top: 0 solid #000;
	border-right: 1px solid #000;
	border-bottom: 0 solid #000;
	border-left: 0 solid #000;
	display: block;
    transition: all 1s ease;
}
nav ul li:last-child a{border:none}
nav ul li a span{
	background: #3FF;
	text-align: center;
	padding: 1em 0em;
	display: block;
	position: relative;
	left: 0px;
	right: 0px;
	/*margin: auto;*/
	height: 1em;
	transition: all 0.5s linear;
	-webkit-transition: all 0.5s linear;
	-moz-transition: all 0.5s linear;
	-o-transition: all 0.5s linear;
}

nav ul li a span:hover{
	background: #FC3;
	height: 2em;
}

nav ul li a:hover {
    padding-left: 0em;
    padding-right: 2em;
    transition: all 1s ease;
}