Why is the height:100%
property not working as expected for a child element of a flex item that also acts as a flex container with flex-grow:1
?
The intention was to have the child element take on the full height of its parent (the one with flex-grow:1
), but it seems my understanding is incorrect.
I am curious to know the specific implications of setting height:100%
in this scenario. Why does the element not expand to fill its parent's height with this property?
This is the relevant HTML (Bootstrap required)
<div class="container-fluid flex-content">
<header class="container-fluid theHeader">
<h1 class="logo">ToDo Manager</h1>
</header>
<div class="container-fluid row flex-grow-this">
<aside class="col-2 project-manager">
sek
</aside>
<section class="col-10 to-do-list">
</section>
</div>
</div><!--end of main div-->