JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="style.css" />
<title>Page title</title>
</head>
<body>
<div id="menu">
<ul id="item1">
<li class="top">Branding</li>
<li class="item"><a href="#">Brief</a></li>
<li class="item"><a href="#">Visuals</a></li>
</ul>
<ul id="item33">
<li>oke</li>
</ul>
<ul id="item2">
<li class="top">Website</li>
<li class="item"><a href="#">Specification</a></li>
<li class="item"><a href="#">Sitemap</a></li>
<li class="item"><a href="#">Wireframe</a></li>
</ul>
<ul id="item3">
<li class="top">Tools</li>
<li class="item"><a href="#">Notes</a></li>
</ul>
</div>
</body>
</html>
CSS
@import url(reset.css);
body {
background-color: #333;
font: 13px Helvetica,Arial,Geneva,sans-serif;
}
li {
display: inline;
list-style: none;
color: #333;
}
a {
text-decoration: none;
color: #333;
}
a:hover {
color: #333;
font-weight: bold;
}
#menu {
position:absolute;
top: 20px;
left: 30px;
} /* This controls the position of the menu itself */
#menu ul {
float: left;
list-style: none outside none;
margin-right: 10px;
width: 148px;
height: 25px;
line-height: 25px;
text-indent: 7px;
background-image: ;
border: 1px solid #cbc5cd;
-moz-border-radius: 4px;
border-radius: 4px;
background: #dcdcdc; /* for non-css3 browsers */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#dcdcdc', endColorstr='#b3b3b3'); /* for IE */
background: -webkit-gradient(linear, left top, left bottom, from(#dcdcdc), to(#b3b3b3)); /* for webkit browsers */
background: -moz-linear-gradient(top, #dcdcdc, #b3b3b3);
} /* This controls the visible items styling */
#menu ul:hover {
font-weight: bold;
border: 1px solid #a094a3;
-moz-border-radius: 4px;
border-radius: 4px;
background: #b5acb7; /* for non-css3 browsers */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#a094a3', endColorstr='#dcdcdc'); /* for IE */
background: -webkit-gradient(linear, left top, left bottom, from(#a094a3), to(#dcdcdc)); /* for webkit browsers */
background: -moz-linear-gradient(top, #a094a3, #dcdcdc);
} /* This controls the visible items rollover styling */
#menu ul .item {
display:none;
}
#menu ul:hover .item {
position: relative;
left: -1px;
background: #dcdcdc;
border-bottom: 1px solid #cbc5cd;
display: block;
height: 25px;
width: 150px;
font-weight: normal;
} /* This controls the dropdown styling */
#menu ul:hover .item:hover {
background: #cbc5cd} /* This controls the dropdown rollover...