My parent div has a height of 250px. I then have multiple children with their min-height set to 100%. While the debugger confirms that the selector is correct and targeting the right elements, the height does not fill the parent's height at all; instead, it remains as small as the content allows.
:root {
--poke-main: #e05e8e;
--poke-secondary: #f5ecc5;
--poke-tertiary: #b5255a;
}
.card {
border-color: var(--poke-tertiary);
}
.poke_tab {
border-radius: .25rem;
background-color: var(--poke-main);
color: var(--poke-secondary);
min-height: 100%;
}
#carousel {
min-height: 250px;
background-color: yellow;
}
.poke_container, .carousel-inner, .poke_tab, .poke_tab .card {
min-height: 100%; /* This doesn't work */
}
.poke_container .card {
background-color: var(--poke-secondary);
color: var(--poke-tertiary);
}
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f6949999828582849786b6c3d8c6d8c4">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<div id="carousel" class="col-lg-10" >
<!-- Infobox -->
<div class="poke_container">
<div class="carousel-inner">
<!-- Log Tab -->
<div class="poke_tab p-2">
<div class="card">
test
</div>
</div>
</div>
</div>
</div>