"Sidebar Navigation"
Bootstrap 3.3.0 Snippet by hegbett

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.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 id="wrapper" data-spy="scroll" data-target="#spy" class=""> <!-- Sidebar --> <div id="sidebar-wrapper" class=""> <nav id="spy"> <ul class="sidebar-nav nav"> <li class="sidebar-brand active"> <a href="#home" class=""><span class="fa fa-home solo">Home</span></a> </li> <li class=""> <a href="#anch1" data-scroll="" class=""> <span class="fa fa-anchor solo">Anchor 1</span> </a> </li> <li class=""> <a href="#anch2" data-scroll="" class=""> <span class="fa fa-anchor solo">Anchor 2</span> </a> </li> <li class=""> <a href="#anch3" data-scroll="" class=""> <span class="fa fa-anchor solo">Anchor 3</span> </a> </li> <li class=""> <a href="#anch4" data-scroll="" class=""> <span class="fa fa-anchor solo">Anchor 4</span> </a> </li> </ul> </nav> </div> <!-- Page content --> <div id="page-content-wrapper" class=""> <div class="content-header"> <h1 id="home" class=""> <a id="menu-toggle" href="#" class="btn btn-menu btn-lg toggle"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a> Sidebar Navigation Template </h1> </div> </div> </div>
#wrapper { padding-left: 250px; transition: all 0.4s ease 0s; } #sidebar-wrapper { margin-left: -250px; left: 250px; width: 250px; background: #000; position: fixed; height: 100%; overflow-y: auto; z-index: 1000; transition: all 0.4s ease 0s; } #wrapper.active { padding-left: 0; } #wrapper.active #sidebar-wrapper { left: 0; } #page-content-wrapper { width: 100%; } .sidebar-nav { position: absolute; top: 0; width: 250px; list-style: none; margin: 0; padding: 0; } .sidebar-nav li { line-height: 40px; text-indent: 20px; } .sidebar-nav li a { color: #999999; display: block; text-decoration: none; padding-left: 60px; } .sidebar-nav li a span:before { position: absolute; left: 0; color: #41484c; text-align: center; width: 20px; line-height: 18px; } .sidebar-nav li a:hover, .sidebar-nav li.active { color: #fff; background: rgba(255,255,255,0.2); text-decoration: none; } .sidebar-nav li a:active, .sidebar-nav li a:focus { text-decoration: none; } .sidebar-nav > .sidebar-brand { height: 65px; line-height: 60px; font-size: 18px; } .sidebar-nav > .sidebar-brand a { color: #999999; } .sidebar-nav > .sidebar-brand a:hover { color: #fff; background: none; } .content-header { height: 65px; line-height: 65px; } .content-header h1 { margin: 0; margin-left: 20px; line-height: 65px; display: inline-block; } #menu-toggle { } .btn-menu { color: #000; } .inset { padding: 20px; } @media (max-width:767px) { #wrapper { padding-left: 0; } #sidebar-wrapper { left: 0; } #wrapper.active { position: relative; left: 250px; } #wrapper.active #sidebar-wrapper { left: 250px; width: 250px; transition: all 0.4s ease 0s; } #menu-toggle { display: inline-block; } .inset { padding: 15px; } }

Related: See More


Questions / Comments: