Need help with stretching two child DIVs in a Bootstrap 5 page to match the height of the parent DIV. Can anyone assist?
Here is the HTML: https://jsfiddle.net/og7pz9sq
I'm attempting to make the light-green and light-yellow DIVs fill the entire white area. The footer will always be positioned at the bottom of the page.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, initial-scale=1">
<title>Bootstrap</title>
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0a6865657e797e786b7a4a3f24392439">[email protected]</a>/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
crossorigin="anonymous">
</head>
<body>
<div id="wholepage"
style="min-height: 90dvh;">
<div id="header">
<div class="p-3 bg-primary text-white text-center">
Bootstrap 5 Page
</div>
</div>
<div id="topmenu">
<nav class="navbar navbar-expand-sm bg-dark navbar-dark">
<div class="container-fluid">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link active"
href="#">Active</a>
</li>
<li class="nav-item">
<a class="nav-link"
href="#">Link</a>
</li>
</ul>
</div>
</nav>
</div>
<div id="sidebar-and-contents">
<div class="row">
<div id="sidebar"
class="col-md-auto"
style="display: inline;">
<ul class="nav nav-pills flex-column"
style="background-color: rgb(172, 201, 135);">
<li class="nav-item">
<a class="nav-link"
href="#">Link-Left1</a>
</li>
<li class="nav-item">
<a class="nav-link"
href="#">Link-Left2</a>
</li>
</ul>
</div>
<div id="content"
class="col"
style="background-color: rgb(241, 240, 172);">
<div>Main area for dynamic contents based on menu selections</div>
</div>
</div>
</div>
</div>
<div id="footer"
class="mt-5 p-4 bg-dark text-white text-center">
<p>Footer</p>
</div>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d2b0bdbda6a1a6a0b3a292e7fce1fce1">[email protected]</a>/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
</body>
</html>