JSFiddle - React, Tailwind, and code Playground

by Optimix

HTML

<nav>
  <ul>
  <li><a href="#">Line 1</a></li>
  <li><a href="#">Line 2</a>
    <ul>
      <li><a href="#">SubCat 1</a></li>
      <li><a href="#">SubCat 2</a></li>
      <li><a href="#">SubCat 3</a></li>
    </ul>
  </li>
  <li><a href="#">Line 3</a>
    <ul>
      <li><a href="#">SubCat 4</a></li>
      <li><a href="#">SubCat 5</a></li>
      <li><a href="#">SubCat 6</a></li>
    </ul>
  </li>
  <li><a href="#">Line 4</a>
    <ul>
      <li><a href="#">SubCat 7</a></li>
      <li><a href="#">SubCat 8</a></li>
        <li><a href="#">SubCat 9</a></li>
    </ul>
  </li>
</ul>
</nav>

CSS

nav {
	background: url(../images/global/Navigation_Full.png) no-repeat;
	width: 540px;
	height: 54px;
	margin: 0 auto;
  color: #000;
}

nav ul{
	display: inline-table;
	list-style: none;
	width: 100%;
	position: relative;
	border-top: 1px solid #FF9F69;
}

nav ul:after {
	content: ""; clear: both; display: block;
}

nav ul ul {
	display: none;
	position: absolute;
	width: auto;
	top: 100%;
}

nav ul li:hover > ul {
	display: block;
  opacity: 1;
}

nav li:first-child {
	border-left: none;
}

nav li {
	text-align: center;
	margin-left: 1px;
	float: left;
	height: 38px;
	line-height: 40px;
  padding: 0 10px;
}

nav li a {
	padding: 10px 17px;
	font-size: 0.813em;
	text-decoration: none;
	text-shadow: inherit;
	color: #000;
}

nav li:hover {
	 box-shadow: 1px 1px 20px 1px rgba(64, 23, 0, 0.4) inset;
	-webkit-transition-property:color, background;
	-moz-transition-property:color, background;
	-webkit-transition-duration: 0.2s;
	-moz-transition-duration: 0.2s;
	-webkit-transition-timing-function: linear, ease-in;
	-moz-transition-timing-function: linear, ease-in;
}

nav ul ul {
	background: rgb(125,56,16); /* Old browsers */
	background: -moz-linear-gradient(top,  rgba(125,56,16,1) 0%, rgba(233,103,31,1) 30px, rgba(233,103,31,1) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(125,56,16,1)), color-stop(30px,rgba(233,103,31,1)), color-stop(100%,rgba(233,103,31,1))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  rgba(125,56,16,1) 0%,rgba(233,103,31,1) 30px,rgba(233,103,31,1) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  rgba(125,56,16,1) 0%,rgba(233,103,31,1) 30px,rgba(233,103,31,1) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  rgba(125,56,16,1) 0%,rgba(233,103,31,1) 30px,rgba(233,103,31,1) 100%); /* IE10+ */
	background: linear-gradient(to bottom,  rgba(125,56,16,1) 0%,rgba(233,103,31,1) 30px,rgba(233,103,31,1) 100%); /* W3C */
	filter:...