I am attempting to transform the left sidebar into a small icon (=more settings) when the window is resized for smaller devices.
Problem:
My code displays an overlap of two columns when the window is resized to medium size. How can I resolve this overlap issue using primarily Bootstrap 4? Removing the navbar class and collapse eliminates the overlap, but I want to keep these features intact. Thank you for your assistance.
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/js/bootstrap.bundle.min.js"></script>
<div class="row no-gutters" style="margin-left: 15px;margin-right: 15px;">
<div class="col-sm-2">
<nav class="navbar navbar-expand-lg navbar-expand-md navbar-expand-sm">
<button id="filter_control" class="navbar-toggler" data-target="#filter_container3" data-toggle="collapse" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<p><i class="fas fa-sliders-h" style="padding-right:5px;"></i>=More Settings </p>
</button>
<!--collapse for filter and flex-column to make narrow column-->
<div id="filter_container3" class="collapse navbar-collapse" style="margin-top:50px;">
<div class="list-group text-secondary">
<a class="list-group-item list-group-item-action" href="404.html"><span>Account</span></a>
<a class="list-group-item list-group-item-action" href="account.html"><span>Subject</span></a>
<a class="list-group-item list-group-item-action"><span>Class</span></a>
<a class="list-group-item list-group-item-action"><span>Schedule</span></a>
<a class="list-group-item list-group-item-action"><span>Log</span></a>
<a class="list-group-item list-group-item-action"><span>Billing</span></a>
</div>
</div>
</nav>
</div>
<!--mid col-->
<div class="col-12 col-sm-10">
<div class="row no-gutters" style="margin-top:25px;">
...