"Dropdown Menu - Scrolling"
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"> <!DOCTYPE html> <html lang="en"> <head> <title>Support</title> <!-- Force IE to turn off past version compatibility mode and use current version mode --> <meta http-equiv="X-UA-Compatible" content="IE=edge;chrome=1"> <!-- Get the width of the users display--> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Text encoded as UTF-8 --> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <!-- icons --> <link href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet"> <!-- bootstrap --> <link href="https://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet" id="default"> <!-- theme --> <link href="https://netdna.bootstrapcdn.com/bootswatch/3.0.3/bootstrap/bootstrap.min.css" rel="stylesheet" title="theme"> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries in IE8, IE9 --> <!--[if lt IE 9]> <script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.2/html5shiv.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/respond.js/1.3.0/respond.js"></script> <![endif]--> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries in IE8, IE9 --> <!--[if lt IE 9]> <script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.2/html5shiv.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/respond.js/1.3.0/respond.js"></script> <![endif]--> </head> <body class="bootstrap"> <section id="wrapper"> <div class="container"> <div class="row"> <div class="col-md-12"> <form action="clientsearch/index.asp" method="post" class="navbar-form" name="search-form" id="search-form" accept-charset="utf-8"> <div class="form-group" style="display:inline;"> <div class="input-group"> <span class="input-group-btn btn-block" > <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown"> <span class="glyphicon glyphicon-search"></span> <span class="nav-label"> Search</span> <span class="fa fa-caret-down"></span> </button> <ul class="dropdown-menu scroll-menu"> <li><a href="#"><i class="icon-asterisk"></i> Start</a> </li> <li><a href="#"><i class="glyphicon glyphicon-minus"></i> UI Lightness</a> </li> <li><a href="#"><i class="glyphicon glyphicon-map-marker"></i> UI Darkness</a> </li> <li><a href="#"><i class="glyphicon glyphicon-pause"></i> Smoothness</a> </li> <li><a href="#"><i class="glyphicon glyphicon-log-out"></i> Redmond</a> </li> <li><a href="#"><i class="glyphicon glyphicon-paperclip"></i> Sunny</a> </li> <li><a href="#"><i class="glyphicon glyphicon-print"></i> Overcast</a> </li> <li><a href="#"><i class="glyphicon glyphicon-minus"></i> Le Frog</a> </li> <li><a href="#"><i class="glyphicon glyphicon-minus"></i> Flick</a> </li> <li><a href="#"><i class="glyphicon glyphicon-minus"></i> Pepper Grinder</a> </li> <li><a href="#"><i class="glyphicon glyphicon-minus"></i> Eggplant</a> </li> <li><a href="#"><i class="glyphicon glyphicon-minus"></i> Dark Hive</a> </li> <li><a href="#"><i class="glyphicon glyphicon-minus"></i> Cupertino</a> </li> <li><a href="#"><i class="glyphicon glyphicon-minus"></i> South Street</a> </li> <li><a href="#"><i class="glyphicon glyphicon-minus"></i> Blitzer</a> </li> <li><a href="#"><i class="glyphicon glyphicon-minus"></i> Humanity</a> </li> <li><a href="#"><i class="glyphicon glyphicon-minus"></i> Hot Sneaks</a> </li> <li><a href="#"><i class="glyphicon glyphicon-minus"></i> Excite Bike</a> </li> <li><a href="#"><i class="glyphicon glyphicon-minus"></i> Vader</a> </li> <li><a href="#"><i class="glyphicon glyphicon-minus"></i> Dot Luv</a> </li> <li><a href="#"><i class="glyphicon glyphicon-minus"></i> Mint Choc</a> </li> <li><a href="#"><i class="glyphicon glyphicon-minus"></i> Black Tie</a> </li> <li><a href="#"><i class="glyphicon glyphicon-minus"></i> Trontastic</a> </li> <li><a href="#"><i class="glyphicon glyphicon-minus"></i> Swanky Purse</a> </li> </ul> </span> </div> </div> </form> </div> </div> </div> </section> </body> </html>
#scrollbar1 { width:80%; margin:20px auto 10px; position: relative; } #scrollbar1 .viewport { height: 300px; overflow:hidden; position:relative; background: #dedede; } #scrollbar1 .overview { list-style:none; position:absolute; left:0; top:0; margin:0; padding: 10px 20px; }

Related: See More


Questions / Comments: