"Multi column dropdown"
Bootstrap 3.1.0 Snippet by pennstatephil

<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.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 ----------> <div class="container"> Credit: <a href="http://www.devlifeline.com/2013/09/multi-column-bootstrap-dropdown.html">Source</a> <div class="row"> <ul class="nav"> <li class="dropdown"> <a href="#" data-toggle="dropdown">Dropdown Heading</a> <div class="dropdown-menu multi-column"> <div class="container-fluid"> <div class="row-fluid"> <div class="span6"> <ul class="dropdown-menu"> <li><a href="#">Col 1 - Opt 1</a></li> <li><a href="#">Col 1 - Opt 2</a></li> </ul> </div> <div class="span6"> <ul class="dropdown-menu"> <li><a href="#">Col 2 - Opt 1</a></li> <li><a href="#">Col 2 - Opt 2</a></li> </ul> </div> </div> </div> </div> </li> </ul> </div> </div>
.dropdown-menu.multi-column { width: 400px; } .dropdown-menu.multi-column .dropdown-menu { display: block !important; position: static !important; margin: 0 !important; border: none !important; box-shadow: none !important; }

Related: See More


Questions / Comments:

Thank you!

MDBritt () - 10 years ago - Reply 0