Bootstrap 4 Responsive Megamenu With 6 Columns Example
Bootstrap 4 Responsive Megamenu With 6 Columns Example: In the last post, I posted the simple megamenu, in this I am posting responsive megamenu with 6 columns which will looks something like ecommerce or any affiliate networking site megamenu style.
Bootstrap 4 Responsive Megamenu With 6 Columns Example Source code:
[html]
<!DOCTYPE html>
<html lang=”en”>
<head>
<!– Required meta tags –>
<meta charset=”utf-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1, shrink-to-fit=no”>
<!– Bootstrap CSS –>
<link rel=”stylesheet” href=”https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css” integrity=”sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ” crossorigin=”anonymous”>
<!– Yamm styles–>
<link href=”css/yamm.css” rel=”stylesheet”>
<title>Bootstrap 4 Responsive Megamenu with 6 columns</title>
</head>
<body>
<nav class=”navbar fixed-top navbar-toggleable-md navbar-inverse bg-primary yamm” id=”slide-nav”>
<button class=”navbar-toggler navbar-toggler-left” type=”button” data-toggle=”collapse” data-target=”#navbarTopMenu” aria-controls=”navbarTopMenu” aria-expanded=”false” aria-label=”Toggle navigation”>
<span class=”navbar-toggler-icon”></span>
</button>
<div class=”container”>
<a class=”navbar-brand” href=”#”>Javadomain</a>
<div class=”navbar-brand”>
</div>
<div class=”collapse navbar-collapse” id=”navbarTopMenu”>
<ul class=”navbar-nav mr-auto mt-2 mt-md-0″>
<li class=”dropdown yamm-fw nav-item active”><a href=”#” class=”nav-link” data-toggle=”dropdown”>Top Stores</a>
<ul class=”dropdown-menu”>
<li class=”grid-demo”>
<div class=”row”>
<div class=”col-sm-2″><br>
<h5 class=”dropdown-item”>Fashion</h5><hr>
<a class=”dropdown-item” href=”#”>Flipkart</a>
<a class=”dropdown-item” href=”#”>Amazon</a>
<a class=”dropdown-item” href=”#”>Snapdeal</a>
<a class=”dropdown-item” href=”#”>Jabong</a>
<a class=”dropdown-item” href=”#”>Myntra</a>
<a class=”dropdown-item” href=”#”>Abof</a>
<a class=”dropdown-item” href=”#”>Ajio</a>
<a class=”dropdown-item” href=”#”>Zivame</a>
<div class=”dropdown-divider” href=”#”></div>
</div>
<div class=”col-sm-2″><br>
<h5 class=”dropdown-item”>Electronics</h5><hr>
<a class=”dropdown-item” href=”#”>Flipkart</a>
<a class=”dropdown-item” href=”#”>Amazon</a>
<a class=”dropdown-item” href=”#”>Snapdeal</a>
<a class=”dropdown-item” href=”#”>Ebay</a>
<a class=”dropdown-item” href=”#”>Paytm</a>
<a class=”dropdown-item” href=”#”>Shopclues</a>
<a class=”dropdown-item” href=”#”>Tata Cliq</a>
<div class=”dropdown-divider” href=”#”></div>
</div>
<div class=”col-sm-2″><br>
<h5 class=”dropdown-item”>Recharge</h5><hr>
<a class=”dropdown-item” href=”#”>Paytm</a>
<a class=”dropdown-item” href=”#”>Freecharge</a>
<a class=”dropdown-item” href=”#”>Mobikwik</a>
<a class=”dropdown-item” href=”#”>Airtel</a>
<div class=”dropdown-divider” href=”#”></div>
</div>
<div class=”col-sm-2″><br>
<h5 class=”dropdown-item”>Travel</h5><hr>
<a class=”dropdown-item” href=”#”>MakeMyTrip</a>
<a class=”dropdown-item” href=”#”>Yatra</a>
<a class=”dropdown-item” href=”#”>Oyo Rooms</a>
<a class=”dropdown-item” href=”#”>Air Bnb</a>
<a class=”dropdown-item” href=”#”>Ola</a>
<a class=”dropdown-item” href=”#”>Uber</a>
<a class=”dropdown-item” href=”#”>Zoom Car</a>
<div class=”dropdown-divider” href=”#”></div>
</div>
<div class=”col-sm-2″><br>
<h5 class=”dropdown-item”>Food & Groceries</h5><hr>
<a class=”dropdown-item” href=”#”>Dominos</a>
<a class=”dropdown-item” href=”#”>Foodpanda</a>
<a class=”dropdown-item” href=”#”>NearBuy</a>
<a class=”dropdown-item” href=”#”>Pizzahut</a>
<a class=”dropdown-item” href=”#”>Mc Donalds</a>
<a class=”dropdown-item” href=”#”>Swiggy</a>
<a class=”dropdown-item” href=”#”>Grofers</a>
<div class=”dropdown-divider” href=”#”></div>
</div>
<div class=”col-sm-2″><br>
<h5 class=”dropdown-item”>Home</h5><hr>
<a class=”dropdown-item” href=”#”>Pepperfry</a>
<a class=”dropdown-item” href=”#”>FabFurnish</a>
<div class=”dropdown-divider” href=”#”></div>
<div class=”row”>
<div class=”offset-sm-1″>
<p style=”border:1px solid;” class=”p-3″><a href=”https://google.co.in”> View All Stores </a></p>
</div>
</div>
</div>
</div>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!–/.container inside nav–>
</nav>
<div class=”container” style=”margin-top:5rem;”>
<h1>Bootstrap 4 Responsive MegaMenu Example</h1>
<h2> Click above Mega menu’s to see the mega menu </h2>
</div> <!–/. container –>
<!– jQuery first, then Tether, then Bootstrap JS. –>
<script src=”https://code.jquery.com/jquery-3.1.1.slim.min.js” integrity=”sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n” crossorigin=”anonymous”></script>
<script src=”js/tether.js”></script>
<script src=”https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js” integrity=”sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn” crossorigin=”anonymous”></script>
<script>
$(function() {
window.prettyPrint && prettyPrint()
$(document).on(‘click’, ‘.yamm .dropdown-menu’, function(e) {
e.stopPropagation()
})
})
</script>
</body>
</html>
[/html]
Bootstrap 4 Responsive Megamenu With 6 Columns Example Live Demo: