<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="btn-group">
<button type="button" class="btn btn-danger">Action</button>
<button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu" role="menu">
<li class="dropdown-plus-title">
Dropdown
<b class="pull-right glyphicon glyphicon-chevron-up"></b>
</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
.btn.dropdown-toggle ~ .dropdown-menu,
ul.nav li.dropdown ul.dropdown-menu {
background-color: rgb(244, 244, 244);
background-color: rgb(255, 255, 255);
border: 0 solid rgb(66, 133, 244);
box-shadow: 0px 0px 3px rgba(25, 25, 25, 0.3);
top: 0px;
margin: 0px;
padding: 0px;
}
ul.nav li.dropdown ul.dropdown-menu {
position: absolute;
width: 100%;
}
.dropdown-menu .dropdown-plus-title {
width: 100%;
color: rgb(51, 51, 51);
padding: 6px 12px;
font-weight: 800;
border: 0 solid rgb(173, 173, 173);
border-bottom-width: 2px;
cursor: pointer;
}
ul.nav li.dropdown ul.dropdown-menu .dropdown-plus-title {
padding-top: 10px;
padding-bottom: 10px;
line-height: 20px;
}
.btn.dropdown-toggle.btn-primary ~ .dropdown-menu .dropdown-plus-title {
border-color: rgb(53, 126, 189);
}
.btn.dropdown-toggle.btn-success ~ .dropdown-menu .dropdown-plus-title {
border-color: rgb(76, 174, 76);
}
.btn.dropdown-toggle.btn-info ~ .dropdown-menu .dropdown-plus-title {
border-color: rgb(70, 184, 218);
}
.btn.dropdown-toggle.btn-warning ~ .dropdown-menu .dropdown-plus-title {
border-color: rgb(238, 162, 54);
}
.btn.dropdown-toggle.btn-danger ~ .dropdown-menu .dropdown-plus-title {
border-color: rgb(212, 63, 58);
}
@media (min-width: 768px) {
ul.nav li.dropdown ul.dropdown-menu .dropdown-plus-title {
padding-top: 15px;
padding-bottom: 15px;
}
}
@media (min-width: 768px) {
ul.nav li.dropdown ul.dropdown-menu {
width: auto;
}
}