Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  <div class="nav">
    <ul>
  <li>
    <a href="#">Home</a>
  </li>
  <li class="">
    <a href="#">Veggie made</a>
    <ul class="cbp-tm-submenu">
      <li><a href="#">Sorrel desert</a></li>
      <li><a href="#">Raisin kakadu</a></li>
      <li><a href="#">Plum salsify</a></li>
      <li><a href="#">Bok choy celtuce</a></li>
      <li><a href="#">Onion endive</a></li>
      <li><a href="#">Bitterleaf</a></li>
      <li><a href="#">Sea lettuce</a></li>
    </ul>
  </li>
  <li class="">
    <a href="#">Pepper tatsoi</a>
    <ul>
      <li><a href="#">Brussels sprout</a></li>
      <li><a href="#">Kakadu lemon</a></li>
      <li><a href="#">Juice green</a></li>
      <li><a href="#">Wine fruit</a></li>
      <li><a href="#">Garlic mint</a></li>
      <li><a href="#">Zucchini garnish</a></li>
      <li><a href="#">Sea lettuce</a></li>
    </ul>
  </li>
  <li class="">
    <a href="#">Sweet melon</a>
    <ul>
      <li><a href="#">Sorrel desert</a></li>
      <li><a href="#">Raisin kakadu</a></li>
      <li><a href="#">Plum salsify</a></li>
      <li><a href="#">Bok choy celtuce</a></li>
      <li><a href="#">Onion endive</a></li>
      <li><a href="#">Bitterleaf</a></li>
    </ul>
  </li>
</ul>
  </div>
</body>
</html>
 
ul, li {
  list-style: none;
  padding: 0;
  margin: 0;
}
a {
  text-decoration: none;
  color: #444;
}
.nav {
  background-color: #00adcc;
  padding: 5px;
}
.nav::before, .nav::after {
  display: table;
  content: "";
}
.nav::after {
  clear: both;
}
.nav > ul > li {
  float: left;  
}
.nav a {
  display: block;
  color: #fff;
  padding: 6px 12px;
  border: 1px solid #fff;
  border-radius: 3px;
  margin-right: 5px;
  position: relative;
}
.nav ul ul {
  -webkit-transition: .3s;
  transition: .3s;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  background-color: #00adcc;
  padding: 5px 5px 2px;
}
.nav li:hover ul {
  -webkit-transition: .3s 1s;
  transition: .3s 1s;
  opacity: 1;
  visibility: visible;
}
.nav ul ul a {
  margin: 0 0 3px 0;
}
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers