var left = $ ("#sidebar-left"), right = $ ("#sidebar-right"), content = $ ("#content"), openSidebarsCount = 0, contentClass = ""; // toggle sidebar: if (side === "left") {left. .sidebar a:hover { color: #f1f1f1;} /* Position and style the close button (top right corner) */.sidebar .closebtn { position: absolute; top: 0; right: 25px; font-size: 36px; margin-left: 50px;} /* The button used to open the sidebar */.openbtn { font-size: 20px; cursor: pointer; background-color: #111; color: white; padding: 10px 15px; It is a great starting point for minimal dashboard web apps, or general websites with a toggleable sidebar. Hi, currently the right hand sidebar can only be hidden/ collapsed. As you can imagine, having the sidebar on the right doesn’t require a very different solution. displayed because of bootstrap collapse feature. Clicking the button again restores the sidebar. bootstrap collapse feature. font-size: 37px; src=""> In the above code data-toggle=”collapse” href=”#buttonRef ” and id=”buttonRef” gives you desired collapse output. left: 0; File Size: 7.67 KB: Views Total: 23775: Last Update: 08/25/2015 05:54:28 UTC: Publish Date: 08/25/2015 06:08:06 UTC: Official Website: Go to website: License: MIT : … Sidebar navigation has become a standard for responsive design, and many frontend developers are looking for the best approach.

In bootstrap collapse sidebar feature works based on data-toggle=”collapse”, In the above code data-toggle=”collapse” data-target=”#collapseText” and id=”collapseText. document.getElementById("sideBarId").style.width = "0"; By default, the sidebar will appear, i.e. If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail: /* Set the width of the sidebar to 250px and the left margin of the function hideNavigation() { .sideBarClass button { .sideBarClass .hideButton { .sidebar-collapse .left-side, .sidebar-collapse .main-sidebar{ transform: translate(0,0); width: 40px; } Start your app again, the sidebar is semi-collapsing ! preferred on the right side collapsible sidebar. font-size: 24px; Active 2 years, 1 month ago.

Click on Side Bar to Hide and Open Side Bar.

Collapse Side Bar can be on the left side or right side depending upon the user requirement. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Please click me again to hide.
Collapsible Dashboard Sidebar allows you to hide your favorite dashboards list and gives valuable screen space back to your gadgets and data. .button { } Collapse features can also be applied to top and bottom also. In the first example, we have taken data-target, the second example has taken href attributes and the third example class as collapse show. Collapsible Sidebar You can add support for collapsing the Left Sidebar by adding the class be-collapsible-sidebar into the main wapper element and be-collapsible-sidebar-collapsed to set it collapsed by default.

Bootstrap Collapse Demo

I am displayed because of border: none; d. Hiding the text and badge on collapse: