Navigation sidebar is a container for a list of navigation buttons. It is intended to be used vertically only.
<div class="box nav-sidebar">
<button class="nav-sidebar-btn">
<span>Home Page</span>
</button>
<button class="nav-sidebar-btn">
<span>About Page</span>
</button>
<button class="nav-sidebar-btn">
<span>Contact Page</span>
</button>
</div>
When a nav-sidebar-btn
has the active
class name, it's background color will change.
To create sections of the sidebar a separator can be used.
active
- a class that should be added to the navigation button when it is active, changes the background color of that buttonnav-sidebar-btn
- a navigation buttonnav-sidebar
- a container for the navigation buttonsseparator
- creates a horizontal line that separates different sections of the sidebar