"test megamenu with hover"
Bootstrap 3.2.0 Snippet by xrozix

<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <nav class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-megadropdown-tabs"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#"></a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="bs-megadropdown-tabs"> <ul class="nav navbar-nav"> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li class="dropdown mega-dropdown"> <a href="http://google.com" class="dropdown-toggle" data-toggle="dropdown">Dropdown <span class="caret"></span></a> <div class="dropdown-menu mega-dropdown-menu"> <ul class="nav-list list-inline"> <li><a href="http://google.com" target="_blank"><span>Running</span></a></li> <li><a href="#"><span>Basketball</span></a></li> <li><a href="#"><span>Football</span></a></li> <li><a href="#"><span>Soccer</span></a></li> <li><a href="#"><span>Men's Training</span></a></li> <li><a href="#"><span>Women's Training</span></a></li> </ul> </div> </li> <li class="dropdown mega-dropdown"> <a href="http://google.com" class="dropdown-toggle" data-toggle="dropdown">Dropdown <span class="caret"></span></a> <div class="dropdown-menu mega-dropdown-menu"> <ul class="nav-list list-inline"> <li><a href="http://google.com" target="_blank"><span>Running</span></a></li> <li><a href="#"><span>Basketball</span></a></li> <li><a href="#"><span>Football</span></a></li> <li><a href="#"><span>Soccer</span></a></li> <li><a href="#"><span>Men's Training</span></a></li> <li><a href="#"><span>Women's Training</span></a></li> </ul> </div> </li> </ul> </div><!-- /.navbar-collapse --> </div><!-- /.container-fluid --> </nav>
.nav-list > li { padding: 20px; // border-left: 1px solid #eee; } //.nav-list > li:last-child { border-right: 1px solid #eee; } .nav-list > li:first-child { font-weight:bold; } .nav-list > li > a:hover { text-decoration: none; } .nav-list > li > a > span { display: block; text-transform: uppercase; } .mega-dropdown { position: static !important; } .mega-dropdown-menu { padding: 20px; text-align: center; width: 100%; }
$(document).ready(function(){ $(".dropdown").hover( function() { $('.dropdown-menu', this).stop( true, true ).slideDown("fast"); $(this).toggleClass('open'); }, function() { $('.dropdown-menu', this).stop( true, true ).slideUp("fast"); $(this).toggleClass('open'); } ); });

Related: See More


Questions / Comments: