"Rightsidebar-toggle- Jenny"
Bootstrap 3.3.0 Snippet by ajavillo

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
<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 id="wrapper-right" class="">
<!-- Sidebar -->
<!-- Sidebar -->
<div id="sidebar-wrapper-right">
<ul id="sidebar_menu" class="sidebar-nav-right">
<li class="sidebar-brand-right"><a id="menu-toggle-right" href="#">Menu<span id="main_icon" class="glyphicon glyphicon-align-justify"></span></a></li>
</ul>
<ul class="sidebar-nav-right" id="sidebar-right">
<li><a>Link1<span class="sub_icon glyphicon glyphicon-link"></span></a></li>
<li><a>link2<span class="sub_icon glyphicon glyphicon-link"></span></a></li>
</ul>
</div>
<!-- Page content -->
<div id="page-content-wrapper-right">
<!-- Keep all page content within the page-content inset div! -->
<div class="page-content-right inset">
<div class="row">
<div class="col-md-12">
<p class="well lead">An Experiment using the sidebar template from startbootstrap.com which I integrated in my website (<a href="http://animeshmanglik.name">animeshmanglik.name</a>)</p>
<p class="well lead">Click on the Menu to Toggle Sidebar . Hope you enjoy it!</p>
<p class="well lead">Click on the Menu to Toggle Sidebar . Hope you enjoy it!</p>
</div>
</div>
</div>
</div>
</div>
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
.row{
margin-left:0px;
margin-right:0px;
}
#wrapper-right {
padding-right: 70px;
transition: all .4s ease 0s;
height: 100%;
}
#sidebar-wrapper-right {
margin-right: -150px;
right: 70px;
width: 150px;
background: #222;
position: fixed;
height: 100%;
z-index: 10000;
transition: all .4s ease 0s;
}
.sidebar-nav-right {
display: block;
float: right;
width: 150px;
list-style: none;
margin: 0;
padding: 0;
}
#page-content-wrapper-right {
padding-left: 0;
margin-left: 0;
width: 100%;
height: auto;
}
#wrapper-right.active {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
$("#menu-toggle-right").click(function(e) {
e.preventDefault();
$("#wrapper-right").toggleClass("active");
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

Content should not be pushed, how can I do? Please share the code

Arvind Sharma () - 7 years ago - Reply 0