Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mdbootstrap/bootstrap-side-navbar

The side navigation component built wit the latest Bootstrap 5 provides an easy way to navigate through your website.
https://github.com/mdbootstrap/bootstrap-side-navbar

bootstrap bootstrap-5-template bootstrap-sidebar bootstrap-sidenav bootstrap-template bootstrap5 collapse-component navbar responsive-design side-navbar

Last synced: 28 days ago
JSON representation

The side navigation component built wit the latest Bootstrap 5 provides an easy way to navigate through your website.

Awesome Lists containing this project

README

        

Side Navbar is an additional navigation component that provides extensive support and a clear way for navigating through complex websites with hundreds of links and subpages.

Check out [Bootstrap Side Navbar Documentation](https://mdbootstrap.com/docs/standard/extended/side-navbar/) for detailed instructions & even more examples.

## Basic example

![Bootstrap 5 Side Navbar](https://mdbootstrap.com/img/Marketing/github/side-navbar/basic.png)

```html











```

```css
body {
background-color: #fbfbfb;
}
@media (min-width: 991.98px) {
main {
padding-left: 240px;
}
}

/* Sidebar */
.sidebar {
position: fixed;
top: 0;
bottom: 0;
left: 0;
padding: 58px 0 0; /* Height of navbar */
box-shadow: 0 2px 5px 0 rgb(0 0 0 / 5%), 0 2px 10px 0 rgb(0 0 0 / 5%);
width: 240px;
z-index: 600;
}

@media (max-width: 991.98px) {
.sidebar {
width: 100%;
}
}
.sidebar .active {
border-radius: 5px;
box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}

.sidebar-sticky {
position: relative;
top: 0;
height: calc(100vh - 48px);
padding-top: 0.5rem;
overflow-x: hidden;
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}
```

## How to use?

1. Download MDB 5 - free UI KIT

2. Choose your favourite customized component and click on the image

3. Copy & paste the code into your MDB project

[▶️ Subscribe to YouTube channel for web development tutorials & resources](https://www.youtube.com/MDBootstrap?sub_confirmation=1)

## More examples

[Bootstrap Side Navbar Collapse:
![Bootstrap 5 Collapse](https://mdbootstrap.com/img/Marketing/github/side-navbar/collapse.png)](https://mdbootstrap.com/docs/standard/extended/side-navbar/#section-collapse)

___

## More extended Bootstrap documentation