<!-- Start Navigation Bar -->
<nav class="navbar">
  <ul class="menu">
    <li>
      <a class="hasDropdown" href="#">Electronics <i class="fa fa-angle-down"></i></a>

      <ul class="container">
        <div class="container__list">
          <div class="container__listItem">
            <div>Televisions</div>
          </div>
          <div class="container__listItem">
            <div>Home Entertainment Systems</div>
          </div>
          <div class="container__listItem">
            <div>Headphones</div>
          </div>
          <div class="container__listItem">
            <div>Speakers</div>
          </div>
          <div class="container__listItem">
            <div>MP3, Media Players & Accessories</div>
          </div>
          <div class="container__listItem">
            <div>Audio & Video Accessories</div>
          </div>
          <div class="container__listItem">
            <div>Cameras</div>
          </div>
          <div class="container__listItem">
            <div>DSLR Cameras</div>
          </div>
          <div class="container__listItem">
            <div>Camera Accessories</div>
          </div>
          <div class="container__listItem">
            <div>Musical Instruments & Professional Audio</div>
          </div>
          <div class="container__listItem">
            <div>Gaming Consoles</div>
          </div>
          <div class="container__listItem">
            <div> All Electronics </div>
          </div>
          <div class="container__listItem">
            <div>Air Conditioners</div>
          </div>
          <div class="container__listItem">
            <div>Refrigerators</div>
          </div>
          <div class="container__listItem">
            <div>Washing Machines</div>
          </div>
          <div class="container__listItem">
            <div>Kitchen & Home Appliances</div>
          </div>
          <div class="container__listItem">
            <div>Heating & Cooling Appliances</div>
          </div>
          <div class="container__listItem">
            <div>All Appliances</div>
          </div>
      </ul>
    </li>
    <li>
      <a class="hasDropdown" href="#">Appliances <i class="fa fa-angle-down"></i></a>
      <ul class="container has-multi">
        <div class="container__list container__list-multi">
          <div class="container__listItem">
            <div>Televisions</div>
          </div>
          <div class="container__listItem">
            <div>Home Entertainment Systems</div>
          </div>
          <div class="container__listItem">
            <div>Headphones</div>
          </div>
          <div class="container__listItem">
            <div>Speakers</div>
          </div>
          <div class="container__listItem">
            <div>MP3, Media Players & Accessories</div>
          </div>
          <div class="container__listItem">
            <div>Audio & Video Accessories</div>
          </div>
          <div class="container__listItem">
            <div>Cameras</div>
          </div>
          <div class="container__listItem">
            <div>DSLR Cameras</div>
          </div>
          <div class="container__listItem">
            <div>Camera Accessories</div>
          </div>
          <div class="container__listItem">
            <div>Musical Instruments & Professional Audio</div>
          </div>
          <div class="container__listItem">
            <div>Gaming Consoles</div>
          </div>
          <div class="container__listItem">
            <div> All Electronics </div>
          </div>
          <div class="container__listItem">
            <div>Air Conditioners</div>
          </div>
          <div class="container__listItem">
            <div>Refrigerators</div>
          </div>
          <div class="container__listItem">
            <div>Washing Machines</div>
          </div>
          <div class="container__listItem">
            <div>Kitchen & Home Appliances</div>
          </div>
          <div class="container__listItem">
            <div>Heating & Cooling Appliances</div>
          </div>
          <div class="container__listItem">
            <div>All Appliances</div>
          </div>
        </div>
        <div class="container__list container__list-multi">
          <div class="container__listItem">
            <div>Mobiles</div>
          </div>
          <div class="container__listItem">
            <div>Laptops</div>
          </div>
          <div class="container__listItem">
            <div>Mobile Accessories</div>
          </div>
          <div class="container__listItem">
            <div>PC Accessories</div>
          </div>
          <div class="container__listItem">
            <div>Data Storage</div>
          </div>
          <div class="container__listItem">
            <div>PC Components</div>
          </div>
          <div class="container__listItem">
            <div>Speakers</div>
          </div>
          <div class="container__listItem">
            <div>Networking</div>
          </div>
          <div class="container__listItem">
            <div>Printers and Ink</div>
          </div>
          <div class="container__listItem">
            <div>Wearables</div>
          </div>
          <div class="container__listItem">
            <div>Tablets</div>
          </div>
          <div class="container__listItem">
            <div> Desktops </div>
          </div>
          <div class="container__listItem">
            <div>Chromebook</div>
          </div>
          <div class="container__listItem">
            <div>USBs</div>
          </div>
          <div class="container__listItem">
            <div>CAT5 Cables</div>
          </div>
          <div class="container__listItem">
            <div>Water Purifiers</div>
          </div>
          <div class="container__listItem">
            <div>Screenguards</div>
          </div>
          <div class="container__listItem">
            <div>All Appliances</div>
          </div>
          <div class="container__listItem">
            <div>Landline Phones</div>
          </div>
          <div class="container__listItem">
            <div>Chargers</div>
          </div>
        </div>
        <div class="container__list container__list-multi">
          <div class="container__listItem">
            <div>Selfie Sticks</div>
          </div>
          <div class="container__listItem">
            <div>Pendrives</div>
          </div>
          <div class="container__listItem">
            <div>Keyboards</div>
          </div>
          <div class="container__listItem">
            <div>Mouse</div>
          </div>
          <div class="container__listItem">
            <div>Monitors</div>
          </div>
          <div class="container__listItem">
            <div>Smart Glasses (VR)</div>
          </div>
          <div class="container__listItem">
            <div>iPods and MP3 Players</div>
          </div>
          <div class="container__listItem">
            <div>Mobile Cables</div>
          </div>
          <div class="container__listItem">
            <div>Memory Cards</div>
          </div>
          <div class="container__listItem">
            <div>Power Banks</div>
          </div>
          <div class="container__listItem">
            <div>Home Theatres</div>
          </div>
          <div class="container__listItem">
            <div> Hand Blenders </div>
          </div>
          <div class="container__listItem">
            <div>Air Fryers</div>
          </div>
          <div class="container__listItem">
            <div>Popup Toasters</div>
          </div>
          <div class="container__listItem">
            <div>Coffee Makers</div>
          </div>
          <div class="container__listItem">
            <div>Electric Cooker</div>
          </div>
          <div class="container__listItem">
            <div>Vacuum Cleaners</div>
          </div>
          <div class="container__listItem">
            <div>Fans</div>
          </div>
          <div class="container__listItem">
            <div>Irons</div>
          </div>
          <div class="container__listItem">
            <div>Landline Phones</div>
          </div>
        </div>
      </ul>
    </li>
    <li>
      <a href="#">Kids</a>
    </li>
    <li>
      <a href="#">Men</a>
    </li>
    <li>
      <a href="#">Baby</a>
    </li>
    <li>
      <a href="#">Women</a>
    </li>
    <li>
      <a href="#">Furniture</a>
    </li>
    <li>
      <a href="#">Decors</a>
    </li>
    <ul>
</nav>
<!-- End Navigation Bar -->
* {
  box-sizing: border-box;
}

body {
  background: #edeff0;
  font-family: 'Hind', sans-serif;
}

/* Start Navigation Bar */

.navbar {
  background-color: #25283D;
  color: #ffffff;
  border-radius: 4px;
  width: 100vw;
  max-width: 820px;
  margin: 20px auto 0;
}

.navbar .menu {
  display: flex;
  position: relative;
}

@media (max-width: 820px) {
  .navbar .menu {
    display: block;
    position: relative;
  }
}

.navbar .menu li {
  flex: 1;
  display: flex;
  text-align: center;
  transition: background-color 0.5s ease;
}

.navbar .menu a {
  flex: 1;
  justify-content: center;
  display: inline-flex;
  color: #ffffff;
  text-decoration: none;
  padding: 20px;
  position: relative;
}

.navbar .menu a > .fa {
  font-weight: bold;
  margin-left: 8px;
}

.navbar .menu li:hover {
  background-color: #8F3985;
}

.navbar .menu li:hover .container {
  display: flex;
}

@media (max-width: 820px) {
  .navbar .menu li:hover .container {
    display: none;
  }
  
  .fa-angle-down {
    display: none;
  }
}

a.hasDropdown:after {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  height: 0;
  width: 0;
  border: 8px solid transparent;
  border-top-color: #25283d;
  z-index: 2;
}

@media (max-width: 820px) {
  li:hover a.hasDropdown:after {
    display: none;
  }
}

li:hover a.hasDropdown:after {
  content: '';
  border-top-color: #8F3985;
}

/* End Navigation Bar */

/* Start Single Section Menu */

.container {
  display: none;
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background-color: #ffffff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
  padding: 20px;
  text-align: left;
  margin-bottom: 30px;
}

.container__list {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
}

.container__listItem {
  flex: 0 0 25%;
  padding: 10px 30px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.container__listItem > div {
  color: #DB6356;
  text-decoration: underline;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* End Single Section Menu */

/* Start Multiple Section Menu */
.container.has-multi .container__listItem {
  flex-basis: 100%;
}

.container.has-multi .container__list {
  flex-basis: 33.333%;
  border-radius: 4px;
}

.container.has-multi .container__list:not(:last-child) {
  border-right: solid 1px #f3f3f3;
  margin-right: 20px;
}

/* End Multiple Section Menu */

External CSS

  1. https://fonts.googleapis.com/css?family=Hind
  2. https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css

External JavaScript

This Pen doesn't use any external JavaScript resources.