Crazy Menu
by JQ Purfect
HTML
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<div class="container">
<div class="row">
<div class="col-lg-12">
<h2 class="bold">Scrollable Menu</h2>
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Scrollable Menu <span class="caret"></span>
</button>
<ul class="dropdown-menu scrollable-menu" role="menu">
<li>
<div class="div">
<div class="mdiTitle">LM1000</div>
<div class="divInside">
<a href="#">Another action</a>
<br>
<a href="#">Another action</a>
<br>
<a href="#">Another action</a>
</div>
<div class="mdiTitle">LM2000</div>
<div class="divInside">
<a href="#">Another action</a>
<br>
<a href="#">Another action</a>
<br>
<a href="#">Another action</a>
<br>
<a href="#">Another action</a>
<br>
<a href="#">Another action</a>
<br>
<a href="#">Another action</a>
</div>
</div>
</li>
<li><a href="#" style="padding-left: 10px;">Upload Files</a></li>
<li><a href="#" style="padding-left: 10px;">Upload Folder</a></li>
</ul>
</div>
</div>
</div>
</div>
CSS
.scrollable-menu {
height: auto;
max-height: 300px;
overflow-x: hidden;
}
.mdiTitle {
background: #f7f7f7;
color: #777;
font-weight: bold;
padding-left: 10px;
}
.div {
overflow: scroll;
height: 200px;
border-bottom: 2px solid #ddd;
}
.divInside {
padding-left: 10px;
}