"Bootstrap Button Dropdowns"
Bootstrap 3.1.0 Snippet by logicimpresa

<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 role="main" class="container theme-showcase"> <div class="page-header"> <h1>Buttons Dropdown</h1> </div> <p> </p><h3>Default</h3> <div class="btn-group"> <button class="btn btn-default" type="button">Default</button> <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button"><span class="caret"></span> </button> <ul class="dropdown-menu"> <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 class="btn-group btn-group-primary"> <button class="btn btn-primary" type="button">Primary</button> <button data-toggle="dropdown" class="btn btn-primary dropdown-toggle" type="button"><span class="caret"></span> </button> <ul class="dropdown-menu"> <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 class="btn-group btn-group-success "> <button class="btn btn-success" type="button">Success</button> <button data-toggle="dropdown" class="btn btn-success dropdown-toggle" type="button"><span class="caret"></span> </button> <ul class="dropdown-menu"> <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 class="btn-group btn-group-info"> <button class="btn btn-info" type="button">Info</button> <button data-toggle="dropdown" class="btn btn-info dropdown-toggle" type="button"><span class="caret"></span> </button> <ul class="dropdown-menu"> <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 class="btn-group btn-group-warning"> <button class="btn btn-warning" type="button">Warning</button> <button data-toggle="dropdown" class="btn btn-warning dropdown-toggle" type="button"><span class="caret"></span> </button> <ul class="dropdown-menu"> <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 class="btn-group btn-group-danger"> <button class="btn btn-danger" type="button">Danger</button> <button data-toggle="dropdown" class="btn btn-danger dropdown-toggle" type="button"><span class="caret"></span> </button> <ul class="dropdown-menu"> <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> <p></p> <h3>lg</h3> <p> </p><div class="btn-group"> <button class="btn btn-default btn-lg" type="button">Default</button> <button data-toggle="dropdown" class="btn btn-default btn-lg dropdown-toggle" type="button"> <span class="caret"></span></button> <ul class="dropdown-menu"> <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 class="btn-group btn-group-primary"> <button class="btn btn-primary btn-lg" type="button">Primary</button> <button data-toggle="dropdown" class="btn btn-primary btn-lg dropdown-toggle" type="button"> <span class="caret"></span></button> <ul class="dropdown-menu"> <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 class="btn-group btn-group-success "> <button class="btn btn-success btn-lg" type="button">Success</button> <button data-toggle="dropdown" class="btn btn-success btn-lg dropdown-toggle" type="button"> <span class="caret"></span></button> <ul class="dropdown-menu"> <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 class="btn-group btn-group-info"> <button class="btn btn-info btn-lg" type="button">Info</button> <button data-toggle="dropdown" class="btn btn-info btn-lg dropdown-toggle" type="button"> <span class="caret"></span></button> <ul class="dropdown-menu"> <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 class="btn-group btn-group-warning"> <button class="btn btn-warning btn-lg" type="button">Warning</button> <button data-toggle="dropdown" class="btn btn-warning btn-lg dropdown-toggle" type="button"> <span class="caret"></span></button> <ul class="dropdown-menu"> <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 class="btn-group btn-group-danger"> <button class="btn btn-danger btn-lg" type="button">Danger</button> <button data-toggle="dropdown" class="btn btn-danger btn-lg dropdown-toggle" type="button"> <span class="caret"></span></button> <ul class="dropdown-menu"> <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> <p></p> <h3>md</h3> <p> </p><div class="btn-group"> <button class="btn btn-default btn-md" type="button">Default</button> <button data-toggle="dropdown" class="btn btn-default btn-md dropdown-toggle" type="button"> <span class="caret"></span></button> <ul class="dropdown-menu"> <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 class="btn-group btn-group-primary"> <button class="btn btn-primary btn-md" type="button">Primary</button> <button data-toggle="dropdown" class="btn btn-primary btn-md dropdown-toggle" type="button"> <span class="caret"></span></button> <ul class="dropdown-menu"> <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 class="btn-group btn-group-success "> <button class="btn btn-success btn-md" type="button">Success</button> <button data-toggle="dropdown" class="btn btn-success btn-md dropdown-toggle" type="button"> <span class="caret"></span></button> <ul class="dropdown-menu"> <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 class="btn-group btn-group-info"> <button class="btn btn-info btn-md" type="button">Info</button> <button data-toggle="dropdown" class="btn btn-info btn-md dropdown-toggle" type="button"> <span class="caret"></span></button> <ul class="dropdown-menu"> <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 class="btn-group btn-group-warning"> <button class="btn btn-warning btn-md" type="button">Warning</button> <button data-toggle="dropdown" class="btn btn-warning btn-md dropdown-toggle" type="button"> <span class="caret"></span></button> <ul class="dropdown-menu"> <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 class="btn-group btn-group-danger"> <button class="btn btn-danger btn-md" type="button">Danger</button> <button data-toggle="dropdown" class="btn btn-danger btn-md dropdown-toggle" type="button"> <span class="caret"></span></button> <ul class="dropdown-menu"> <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> <p></p> <h3>sm</h3> <p> </p><div class="btn-group"> <button class="btn btn-default btn-sm" type="button">Default</button> <button data-toggle="dropdown" class="btn btn-default btn-sm dropdown-toggle" type="button"> <span class="caret"></span></button> <ul class="dropdown-menu"> <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 class="btn-group btn-group-primary"> <button class="btn btn-primary btn-sm" type="button">Primary</button> <button data-toggle="dropdown" class="btn btn-primary btn-sm dropdown-toggle" type="button"> <span class="caret"></span></button> <ul class="dropdown-menu"> <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 class="btn-group btn-group-success "> <button class="btn btn-success btn-sm" type="button">Success</button> <button data-toggle="dropdown" class="btn btn-success btn-sm dropdown-toggle" type="button"> <span class="caret"></span></button> <ul class="dropdown-menu"> <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 class="btn-group btn-group-info"> <button class="btn btn-info btn-sm" type="button">Info</button> <button data-toggle="dropdown" class="btn btn-info btn-sm dropdown-toggle" type="button"> <span class="caret"></span></button> <ul class="dropdown-menu"> <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 class="btn-group btn-group-warning"> <button class="btn btn-warning btn-sm" type="button">Warning</button> <button data-toggle="dropdown" class="btn btn-warning btn-sm dropdown-toggle" type="button"> <span class="caret"></span></button> <ul class="dropdown-menu"> <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 class="btn-group btn-group-danger"> <button class="btn btn-danger btn-sm" type="button">Danger</button> <button data-toggle="dropdown" class="btn btn-danger btn-sm dropdown-toggle" type="button"> <span class="caret"></span></button> <ul class="dropdown-menu"> <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> <p></p> <h3>xs</h3> <p> </p><div class="btn-group"> <button class="btn btn-default btn-xs" type="button">Default</button> <button data-toggle="dropdown" class="btn btn-default btn-xs dropdown-toggle" type="button"> <span class="caret"></span></button> <ul class="dropdown-menu"> <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 class="btn-group btn-group-primary"> <button class="btn btn-primary btn-xs" type="button">Primary</button> <button data-toggle="dropdown" class="btn btn-primary btn-xs dropdown-toggle" type="button"> <span class="caret"></span></button> <ul class="dropdown-menu"> <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 class="btn-group btn-group-success "> <button class="btn btn-success btn-xs" type="button">Success</button> <button data-toggle="dropdown" class="btn btn-success btn-xs dropdown-toggle" type="button"> <span class="caret"></span></button> <ul class="dropdown-menu"> <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 class="btn-group btn-group-info"> <button class="btn btn-info btn-xs" type="button">Info</button> <button data-toggle="dropdown" class="btn btn-info btn-xs dropdown-toggle" type="button"> <span class="caret"></span></button> <ul class="dropdown-menu"> <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 class="btn-group btn-group-warning"> <button class="btn btn-warning btn-xs" type="button">Warning</button> <button data-toggle="dropdown" class="btn btn-warning btn-xs dropdown-toggle" type="button"> <span class="caret"></span></button> <ul class="dropdown-menu"> <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 class="btn-group btn-group-danger"> <button class="btn btn-danger btn-xs" type="button">Danger</button> <button data-toggle="dropdown" class="btn btn-danger btn-xs dropdown-toggle" type="button"> <span class="caret"></span></button> <ul class="dropdown-menu"> <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> <p></p> </div>
.btn-group .dropdown-menu a{ color:#fff; } .btn-default .dropdown-menu { color: #000 !important; } .btn-default .dropdown-menu li > a:hover, .btn-default .dropdown-menu li > a:focus { background-color: #000 !important; color:#fff !important; } .btn-group-primary .dropdown-menu { background-color: #3784c5 !important; } .btn-group-primary .dropdown-menu li > a:hover, .btn-group-primary .dropdown-menu li > a:focus { background-color: #428bca !important; } .btn-group-success .dropdown-menu { background-color: #51b351 !important; } .btn-group-success .dropdown-menu li > a:hover, .btn-group-success .dropdown-menu li > a:focus { background-color: #5cb85c !important; } .btn-group-info .dropdown-menu { background-color: #4ebbdb !important; } .btn-group-info .dropdown-menu li > a:hover, .btn-group-info .dropdown-menu li > a:focus { background-color: #5bc0de !important; } .btn-group-warning .dropdown-menu { background-color: #efa640 !important; } .btn-group-warning .dropdown-menu li > a:hover, .btn-group-warning .dropdown-menu li > a:focus { background-color: #f0ad4e !important; } .btn-group-danger .dropdown-menu { background-color: #d64742 !important; } .btn-group-danger .dropdown-menu li > a:hover, .btn-group-danger .dropdown-menu li > a:focus { background-color: #d9534f !important; }

Related: See More


Questions / Comments: