I am a beginner in using bootstrap and I am working on setting up a left side navigation bar that is closed by default when the page loads, requiring the user to click a menu link to open it. The page is a content-heavy dashboard that needs as much space as possible.
Here is the relevant code snippet:
<nav class="navbar-default navbar-static-side" role="navigation">
<div class="sidebar-collapse">
<ul class="nav metismenu" id="side-menu">
<li class="nav-header">
<div class="dropdown profile-element">
<a href="index.html"><img src="img/lc-logo.png" width="172"/></a>
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
<span class="clear"> <span class="block m-t-xs"> <strong class="font-bold">(username)</strong></span>
<span class="text-muted text-xs block">(user role) <b class="caret"></b></span> </span>
</a>
<ul class="dropdown-menu animated fadeInRight m-t-xs">
<li><a href="#">Logout</a></li>
</ul>
</div>
<div class="logo-element">
LC
</div>
</li>
<li class="active">
<a href="index.html"><i class="fa fa-calendar-o fa-lg"></i> <span class="nav-label">Schedule</span></a>
</li>
<li>
<a href="index.html"><i class="fa fa-th fa-lg"></i> <span class="nav-label">Releases</span></a>
<ul class="nav nav-second-level">
<li class="active"><a href="release.html">v2.3</a></li>
<li><a href="release.html">v2.6</a></li>
<li><a href="release.html">v2.7</a></li>
<li><a href="release.html">v3.0 <span class="label label-primary pull-right">NEW</span></a></li>
<li><a href="offcycle.html">Off Cycle <span class="label label-primary pull-right">NEW</span></a></li>
</ul>
</li>
<li><a href="testing.html"><i class="fa fa-bug fa-lg"></i> <span class="nav-label">Test Status</span></a></li>
<li><a href="stats.html"><i class="fa fa-bar-chart fa-lg"></i> <span class="nav-label">Stats</span></a></li>
<li><a href="settings.html"><i class="fa fa-cogs fa-lg"></i> <span class="nav-label">Settings</span></a></li>
</ul>
</div>
</nav>