"Fancy Dropdowns"
Bootstrap 3.1.0 Snippet by escapedlion

<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"> <div class="row"> <h3>Split button dropdowns</h3> <p>Similarly, create split button dropdowns with the same markup changes, only with a separate button.</p> <div class="panel panel-default"> <div class="panel-body"> <div class="btn-group"> <button type="button" class="btn btn-primary">Action</button> <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown"> <span class="sr-only">Toggle Dropdown</span> <span class="caret"></span> </button> <ul class="dropdown-menu" role="menu"> <li class="dropdown-plus-title label-primary"> <span class="pull-left glyphicon glyphicon-chevron-up"></span> <span class="label-icon">Dropdown Title</span> </li> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </div> </div> </div> </div> </div>
.btn.dropdown-toggle ~ .dropdown-menu, ul.nav li.dropdown ul.dropdown-menus { border: 0 solid rgb(66, 133, 244); box-shadow: 0px 0px 3px rgba(25, 25, 25, 0.3); top: 40px; margin: 0px; padding: 0px; } ul.nav li.dropdown ul.dropdown-menu { position: absolute; width: 100%; } .dropdown-menu .dropdown-plus-title { width: 100%; padding: 6px 12px; font-weight: 300; border: 0 solid rgb(173, 173, 173); border-bottom-width: 2px; cursor: pointer; } ul.nav li.dropdown ul.dropdown-menu .dropdown-plus-titles { padding-top: 10px; padding-bottom: 10px; line-height: 20px; } .btn.dropdown-toggle.btn-successs ~ .dropdown-menu .dropdown-plus-title { border-color: rgb(76, 174, 76); } .btn.dropdown-toggle.btn-infos ~ .dropdown-menu .dropdown-plus-title { border-color: rgb(70, 184, 218); } .btn.dropdown-toggle.btn-warnings ~ .dropdown-menu .dropdown-plus-title { border-color: rgb(238, 162, 54); } .btn.dropdown-toggle.btn-dangers ~ .dropdown-menu .dropdown-plus-title { border-color: rgb(212, 63, 58); } @media (min-width: 768px) { ul.nav li.dropdown ul.dropdown-menu .dropdown-plus-titles { padding-top: 15px; padding-bottom: 15px; } } @media (min-width: 768px) { ul.nav li.dropdown ul.dropdown-menus { width: auto; } }

Related: See More


Questions / Comments: