I have a Bootstrap 5.2 header/main/footer layout where I want the main section to expand and fill the page between the header and footer completely.
The code below is currently working:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1c7e7373686f686e6f4e263d322f">[email protected]</a>/dist/css/bootstrap.min.css">
<body class="d-flex flex-column min-vh-100">
<header>
H
</header>
<main class="flex-grow-1" style="background: blue;">
<div style="background: yellow; height: 100%;">
M
</div>
</main>
<footer>
F
</footer>
</body>
However, I want the div inside the main section to completely fill its parent both horizontally and vertically. Right now, it is only filling horizontally. What could I be missing?