Table of Contents

Drop down Menu

Example
<!DOCTYPE html>
<html>
<head>
  <style>
    ul {
      margin: 0;
      padding: 0;
      list-style-type: none;
      overflow: hidden;
      background-color: #030d40;
      border: 1px solid red;
    }
    li {
      float: left;
      border: 1px solid white;
    }
    li a, .dropbtn {
      display: inline-block;
      color: white;
      text-align: center;
      padding: 14px 16px;
      text-decoration: none;
    }
    li a:hover, .dropdown:hover .dropbtn {
      background-color: #70d487;
      color:black;
    }
    li.dropdown {
      display: inline-block;
    }
    .dropdown-content {
      display: none;
      position: absolute;
      background-color: #03194d;
      min-width: 160px;
      box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
      z-index: 1;
    }
    .dropdown-content a {
      color: white;
      padding: 12px 16px;
      text-decoration: none;
      display: block;
      text-align: left;
      border: 1px solid white;
    }
    .dropdown-content a:hover {
      background-color: #f1f1f1;
    }
    .dropdown:hover .dropdown-content {
      display: block;
    }
    .active {
      background-color: #4CAF50;
    }
  </style>
</head>
<body>
  <h3>This is Example of Dropdown Menu inside a Navigation Bar</h3>
  <p>See the best result Hover over the "Dropdown" link to see the dropdown menu.</p>
  <ul>
    <li style="float: right;"><a class="active" href="#home">Home</a></li>
    <li class="dropdown" >
      <a href="javascript:void(0)" class="dropbtn" >Branch</a>
      <div class="dropdown-content">
        <a href="#">Cantt</a>
        <a href="#">Lanka</a>
        <a href="#">BHU</a>
        <a href="#">Durgakund</a>
      </div>
    </li>
    <li class="dropdown">
      <a href="javascript:void(0)" class="dropbtn">Course</a>
      <div class="dropdown-content">
        <a href="#">'O' Level</a>
        <a href="#">'A' Level</a>
        <a href="#">'B' Level</a>
        <a href="#">'C' Level</a>
      </div>
    </li>
  </ul>
</body>
</html>