"Side navbar with dropdown menu"
Bootstrap 3.3.0 Snippet by Arshi_S

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="//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 ---------->
<head>
<title>Sidebar4</title>
<link media="all" type="text/css" rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">
</head>
<div class="container-fluid">
<div class="row">
<div class="col-md-3 col-sm-4 sidebar3">
<div class="logo">
<img src="http://lorempixel.com/output/sports-q-c-64-64-2.jpg" class="img-responsive" alt="Logo">
</div>
<div class="name">
<p>Arshi S</p>
<p>12 Contributions</p>
</div>
</div>
</div>
<div class="row">
<div class="col-md-3 col-sm-4 sidebar3">
<div class="left-navigation">
<ul>
<li><i class="fa fa-book" aria-hidden="true"></i>Books</li>
<li><i class="fa fa-bookmark-o" aria-hidden="true"></i>Active Books <span class="activebooks pull-right">3</span></li>
<li><i class="fa fa-trophy" aria-hidden="true"></i>Recommendations</li>
<li><i class="fa fa-users" aria-hidden="true"></i>People</li>
<li class="list">
<div class="dropdown">
<i class="fa fa-list" aria-hidden="true"></i>My Wishlist <i class="fa fa-plus pull-right" aria-hidden="true"></i>
</div>
<ul class="submenu hide">
<li>The Sealed Nectar</li>
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
*{
box-sizing: border-box;
border: 1px solid transparent;
}
body{
background: #4143A3;
/* For browsers that do not support gradients */
background: -webkit-linear-gradient(left top, #1E1E45, #4143A3, #848FD8,#CFD5EE,#ECEDF9);
/* For Safari 5.1 to 6.0 */
background: -o-linear-gradient(bottom right, #1E1E45, #4143A3, #848FD8,#CFD5EE,#ECEDF9);
/* For Opera 11.1 to 12.0 */
background: -moz-linear-gradient(bottom right, #1E1E45, #4143A3, #848FD8,#CFD5EE,#ECEDF9);
/* For Firefox 3.6 to 15 */
background: linear-gradient( to bottom right, #1E1E45, #4143A3, #848FD8,#CFD5EE,#ECEDF9);
/* Standard syntax */
height:100vh;
color: #fff;
}
.sidebar3
{padding-top:30px;
padding-left:30px;
padding-right:0px;}
.logo
{
float:left;
}
.logo > img
{
box-shadow:0 0 0 1px #848FD8, 0 0 0 5px #1E1E45, 0 0 0 6px #848FD8, -2px -2px 0 6px #00bcd4;
border:1px;
border-radius:100%;
padding:5px;
}
.name
{ float:right;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
window.onload=function(){
$('.dropdown').click(function(){
$(this).siblings(".submenu").toggleClass('hide');
});
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

beauteous

Daniel Ezquivel () - 8 years ago - Reply 0


Thanks Daniel!

Arshi () - 8 years ago - Reply 0