I'm having difficulty getting a row to expand to occupy the remaining available height. I attempted to add h-100
to the row class, but this resulted in a white space at the bottom of the screen. I know there must be a solution out there, but I just can't seem to figure it out.. Below is the code snippet I'm working with:
<div class="container-fluid h-100">
<div class="row justify-content-center h-100">
<div class="col-4 bg-red">
<div class="h-100">
<div class="row justify-content-center bg-purple">
<div class="text-white">
<div style="height:200px">ROW 1</div>
</div>
</div>
<div class="row justify-content-center bg-blue">
<div class="text-white">ROW 2</div>
</div>
</div>
</div>
<div class="col-8 bg-gray"></div>
</div>
</div>
Check out the codepen link for live demonstration and testing: https://codepen.io/ee92/pen/zjpjXW/?editors=1100
Here's an image snapshot for reference: https://i.sstatic.net/yNiBk.png
If anyone has any suggestions on how to make the blue row (ROW 2) take up all the available red space, please let me know!
Thank you in advance