"mega drodown"
Bootstrap 4.0.0 Snippet by srinivasanacg

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <nav class="navbar navbar-expand-lg navbar-light bg-light"> <a class="navbar-brand" href="#">Mega Dropdown</a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarSupportedContent"> <ul class="navbar-nav mr-auto"> <li class="nav-item"> <a class="nav-link" href="#">Category</a> </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Category 1 </a> <div class="dropdown-menu" aria-labelledby="navbarDropdown"> <div class="container"> <div class="row"> <div class="col-md-4"> <ul> <li><a href="">Anchor link 1</a></li> <li><a href="">Anchor link 1</a></li> <li><a href="">Anchor link 1</a></li> <li><a href="">Anchor link 1</a></li> </ul> </div> <!-- /.col-md-4 --> <div class="col-md-4"> <ul> <li><a href="">Anchor link 1</a></li> <li><a href="">Anchor link 1</a></li> <li><a href="">Anchor link 1</a></li> <li><a href="">Anchor link 1</a></li> </ul> </div> <!-- /.col-md-4 --> <div class="col-md-4"> <img src="https://dummyimage.com/400x200/000/fff&text=Alpha" alt="" class="img-fluid"> </div> <!-- /.col-md-4 --> </div> </div> <!-- /.container --> </div> </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Category 2 </a> <div class="dropdown-menu" aria-labelledby="navbarDropdown"> <div class="container"> <div class="row"> <div class="col-md-4"> <ul> <li><a href="">Anchor link 2</a></li> <li><a href="">Anchor link 2</a></li> <li><a href="">Anchor link 2</a></li> <li><a href="">Anchor link 2</a></li> </ul> </div> <!-- /.col-md-4 --> <div class="col-md-4"> <ul> <li><a href="">Anchor link 2</a></li> <li><a href="">Anchor link 2</a></li> <li><a href="">Anchor link 2</a></li> <li><a href="">Anchor link 2</a></li> </ul> </div> <!-- /.col-md-4 --> <div class="col-md-4"> <img src="https://dummyimage.com/400x200/000/fff&text=Beta" alt="" class="img-fluid"> </div> <!-- /.col-md-4 --> </div> </div> <!-- /.container --> </div> </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Category 3 </a> <div class="dropdown-menu" aria-labelledby="navbarDropdown"> <div class="container"> <div class="row"> <div class="col-md-4"> <ul> <li><a href="">Anchor link 3</a></li> <li><a href="">Anchor link 3</a></li> <li><a href="">Anchor link 3</a></li> <li><a href="">Anchor link 3</a></li> </ul> </div> <!-- /.col-md-4 --> <div class="col-md-4"> <ul> <li><a href="">Anchor link 3</a></li> <li><a href="">Anchor link 3</a></li> <li><a href="">Anchor link 3</a></li> <li><a href="">Anchor link 3</a></li> </ul> </div> <!-- /.col-md-4 --> <div class="col-md-4"> <img src="https://dummyimage.com/400x200/000/fff&text=Gamma" alt="" class="img-fluid"> </div> <!-- /.col-md-4 --> </div> </div> <!-- /.container --> </div> </li> </ul> <form class="form-inline my-2 my-lg-0"> <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search"> <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button> </form> </div> </nav>
.dropdown-menu { position:absolute; width:100%; left:0; right:0; border:none; background-color:transparent; } .dropdown-menu div[class*="col"] { margin-bottom:1rem; } .navbar .dropdown {position:static;} @media screen and (min-width: 992px) { .dropdown-menu { display:none; border: 1px solid rgba(0,0,0,.15); background-color: #fff; } }

Related: See More


Questions / Comments: