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
"Sexy Sidebar Navigation"
Bootstrap 3.0.3 Snippet by
paanblogger
3.0.3
sidebar
navigation
Preview
HTML
CSS
View Full Screen
Fork
Fork this
10.5K
 
1 Fav
Post to Facebook
Tweet this
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/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="container"> <h3>Sexy Sidebar Navigation<br /> <small>A simple, sheek navigation bar style!</small> </h3> <br /> <div class="row"> <div class="col-sm-2"> <nav class="nav-sidebar"> <ul class="nav"> <li class="active"><a href="javascript:;">Home</a></li> <li><a href="javascript:;">About</a></li> <li><a href="javascript:;">Products</a></li> <li><a href="javascript:;">FAQ</a></li> <li class="nav-divider"></li> <li><a href="javascript:;"><i class="glyphicon glyphicon-off"></i> Sign in</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-caret-square-o-down"></i> Dropdown <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="http://google.com">Dropdown Item</a></li> <li><a href="http://google.com">Dropdown Item</a></li> <li><a href="http://google.com">Dropdown Item</a></li> <li><a href="http://google.com">Dropdown Item</a></li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-caret-square-o-down"></i> Dropdown <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="http://google.com">Dropdown Item</a></li> <li><a href="http://google.com">Dropdown Item</a></li> <li><a href="http://google.com">Dropdown Item</a></li> <li><a href="http://google.com">Dropdown Item</a></li> </ul> </li> </ul> </nav> </div> <div class="col-sm-2 col-sm-offset-8"> <nav class="nav-sidebar pull-right"> <ul class="nav"> <li class="active"><a href="javascript:;">Home</a></li> <li><a href="javascript:;">A long link will naturally wrap around</a></li> <li class="text-overflow" title="An long link with .text-overflow"><a href="javascript:;">A link with .text-overflow can be applied in case it's too long!</a></li> <li> <a href="javascript:;" class="media"> <span class="pull-left"> <i class="media-object glyphicon glyphicon-list"></i> </span> <div class="media-body"> A media object can also be a link, making longer wrapping links play well with the icons! </div> </a> </li> <li class="text-overflow" title="Combine them all to make an awesome, safe solution!"> <a href="javascript:;" class="media"> <span class="pull-left"> <i class="media-object glyphicon glyphicon-list"></i> </span> <div class="media-body"> Combine them all to make an awesome, safe solution! </div> </a> </li> <li class="nav-divider"></li> <li><a href="javascript:;"><i class="glyphicon glyphicon-off"></i> Sign in</a></li> </ul> </nav> </div> </div> </div>
.nav-sidebar { width: 100%; padding: 8px 0; border-right: 1px solid #ddd; } .nav-sidebar a { color: #333; -webkit-transition: all 0.08s linear; -moz-transition: all 0.08s linear; -o-transition: all 0.08s linear; transition: all 0.08s linear; -webkit-border-radius: 4px 0 0 4px; -moz-border-radius: 4px 0 0 4px; border-radius: 4px 0 0 4px; } .nav-sidebar .active a { cursor: default; background-color: #428bca; color: #fff; text-shadow: 1px 1px 1px #666; } .nav-sidebar .active a:hover { background-color: #428bca; } .nav-sidebar .text-overflow a, .nav-sidebar .text-overflow .media-body { white-space: nowrap; overflow: hidden; -o-text-overflow: ellipsis; text-overflow: ellipsis; } /* Right-aligned sidebar */ .nav-sidebar.pull-right { border-right: 0; border-left: 1px solid #ddd; } .nav-sidebar.pull-right a { -webkit-border-radius: 0 4px 4px 0; -moz-border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0; }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76