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
"Mobile Menu"
Bootstrap 3.3.0 Snippet by
asif0228
3.3.0
menu
Preview
HTML
CSS
View Full Screen
Fork
Fork this
1.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="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <div class="col-sm-4"> <br/><br/> <div class="list-group sidebar_menu"> <a href="#" class="list-group-item active_custom"> <span class="glyphicon glyphicon-user"></span> First item</a> <a href="#" class="list-group-item"> <span class="glyphicon glyphicon-star"></span> Second item</a> <a href="#" class="list-group-item"> <span class="glyphicon glyphicon-zoom-out"></span> Third item</a> <a href="#" class="list-group-item"> <span class="glyphicon glyphicon-ok"></span> Fourth item</a> <a href="#" class="list-group-item"> <span class="glyphicon glyphicon-plus"></span> Fifth item</a> <a href="#" class="list-group-item"> <span class="glyphicon glyphicon-cog"></span> Sixth item</a> <a href="#" class="list-group-item"> <span class="glyphicon glyphicon-trash"></span> Seventh item</a> <a href="#" class="list-group-item"> <span class="glyphicon glyphicon-time"></span> Eighth item</a> <a href="#" class="list-group-item"> <span class="glyphicon glyphicon-road"></span> Ninth item</a> <a href="#" class="list-group-item"> <span class="glyphicon glyphicon-glass"></span> Tenth item</a> </div> </div> <div class="col-sm-8 main_body"> <h1>Responsive Sidebar</h1> <p> Resize the width of the screen and see the responsiveness. </p> </div> </div> </div>
@media screen and (min-width: 768px) { .active_custom{ border-left: 5px solid #337ab7; } } @media screen and (max-width: 767px) { .sidebar_menu{ padding:0; margin:0; } .sidebar_menu a { float: left; font-size: 20px; width: 48%; line-height: 120px; background-color: #4CAF50; /* Green */ text-align: center; margin:1%; color:white; } .active_custom{ background-color: #d9534f !important; /* red */ } .main_body{ clear: both; } }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76