"Sexy Sidebar Navigation"
Bootstrap 3.0.3 Snippet by LukasM01

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<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>
</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!
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.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;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: