I've been scratching my head trying to crack this code. My goal is for the container size to always adjust based on the screen size. I attempted setting the height using min-height and max-height, however, it's not perfectly aligned with the screen size and the browser automatically adds a vertical scrollbar which I want to avoid.
I'm making use of a container-fluid attribute for the outer div. I have a grid layout setup as shown in the attached picture. I intend for the divs to occupy the entire screen without triggering a scrollbar by default. I have deleted the height styles that I've experimented with.
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<div class='container-fluid'>
<div class='row content'>
<div class='col-2 mr-auto pl-0 pr-0'>
<div class='alert alert-primary mb-0'>
<h2 class="text-center">Menu</h2>
</div>
<nav class="nav flex-column alert alert-primary" style="min-height:93vh;">
<p><a href="{% url 'logout' %}">logout</a></p>
<div class="btn-group dropright">
<button type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Requisition
</button>
<ul class="dropdown-menu">
<li><a class="nav-link text-center" href="{% url 'requisition:create_req' %}">New Requisition</a></li>
<li><a class="nav-link text-center" href="{% url 'requisition:basket' %}">Basket</a></li>
<li><a class="nav-link text-center" href="{% url 'requisition:pending_action' %}">Pending</a></li>
<li><a class="nav-link text-center" href="{% url 'requisition:assist_list' %}">Assistance Required</a></li>
</ul>
</div>
</nav>
</div>
<div class='col-10 pl-0 pr-0'>
<div class='alert alert-primary scrollbar' style="min-height:100vh; max-height:100vh; overflow-y:scroll">
{% block content %}
<br> Hi {{ user.username }}!
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<button id="about-btn"> Click Me - I'm Javascript on Speed</button>
<button class="ouch"> Click Me - I'm Javascript on Speed</button>
<p><a href="{% url 'logout' %}">logout</a></p>
{% endblock content %}
</div>
</div>
</div>
</div>