Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Sidebar toggle navigation"
Bootstrap 3.3.0 Snippet by
suhailc
3.3.0
sidebar
navigation
toggle
Preview
HTML
CSS
View Full Screen
Fork
Fork this
16.8K
 
1 Fav
Post to Facebook
Tweet this
<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 class="wrapper"> <div class="sidebar-wrapper"> <ul class="sidebar-nav"> <li data-target="#item1" data-toggle="tab"> item1 </li> <li data-target="#item2" data-toggle="tab"> item2 </li> <li data-target="#item3" data-toggle="tab"> item3 </li> <li data-target="#item4" data-toggle="tab"> item4 </li> <li data-target="#item5" data-toggle="tab"> item5 </li> </ul> </div> <div class="content-wrapper"> <div class="tab-content"> <div class="tab-pane" id="item1"> Its for item1 </div> <div class="tab-pane" id="item2"> Its for item2 </div> <div class="tab-pane" id="item3"> Its for item3 </div> <div class="tab-pane" id="item4"> Its for item4 </div> <div class="tab-pane" id="item5"> Its for item5 </div> </div> </div> </div>
html,body{ height:100%; min-height:100%; } .wrapper{ width:100%; height:100%; } .sidebar-wrapper{ position:fixed; width:200px; height:100%; background:lightblue; } .content-wrapper{ padding-left:200px; } .sidebar-nav{ list-style:none; }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76