Is there a way to make the navbar
and sidebar
fixed when the user scrolls down the page without altering their design? I need them to be responsive as well. Can anyone assist me with this using bootstrap? Here is my fiddle: https://jsfiddle.net/exyvat08/17/
<div class="d-flex" id="wrapper">
<div class="bg-light border-right" id="sidebar-wrapper">
<div class="sidebar-heading"><a href="#" class="navbar-left text-dark"><img class="mx-auto d-block" src="../images/logo.jpg" id="logo"></a></div>
<div class="list-group list-group-flush">
<a href="#" class="list-group-item list-group-item-action bg-light text-dark font-weight-bold">Dashboard</a>
<a href="#" class="list-group-item list-group-item-action bg-light text-dark font-weight-bold">User</a>
<a href="#" class="list-group-item list-group-item-action bg-light text-dark font-weight-bold">Supplier</a>
<a href="#" class="list-group-item list-group-item-action bg-light text-dark font-weight-bold">Purchase Order</a>
<a href="#" class="list-group-item list-group-item-action bg-light text-dark font-weight-bold">Reports</a>
</div>
Original Design