My goal is to transform the left sidebar, which currently has a vertical menu built with "nav nav-pills nav-stacked", into a suitable dropdown menu that starts off as closed/collapsed when the screen size is XS (mobile).
Here is the starting code snippet:
http://www.bootply.com/zOy2IJumZO
The provided html code is displayed below:
<div class="container-fluid">
<div class="row">
<div class="col-xs-12 col-sm-3">
<div class="panel panel-info">
<div class="panel-heading">Categories <span class="badge pull-right">12345</span></div>
<ul id="categories-menu" class="nav nav-pills nav-stacked">
<li id="cid-1"><a href="automotive-vehicles">Automotive Vehicles</a></li>
<li id="cid-8"><a href="business-to-business">Business-to-Business</a></li>
<li id="cid-10"><a href="community">Community</a></li>
<li id="cid-2"><a href="electronics">Electronics</a></li>
<li id="cid-11"><a href="events">Events</a></li>
<li id="cid-12"><a href="fashion">Fashion</a></li>
<li id="cid-13"><a href="freebies">Freebies</a></li>
</ul>
</div>
<div class="panel panel-primary">
<div class="panel-heading">Site statistics</div>
<ul class="list-unstyled">
<li>1000 Users</li>
<li>200 Online</li>
<li>300 Hidden</li>
</ul>
</div>
</div>
<div class="col-xs-12 col-sm-9">
This is the right content column<br>
This is the right content column<br>
This is the right content column<br>
This is the right content column<br>
This is the right content column<br>
This is the right content column<br>
This is the right content column<br>
</div>
</div>
</div>