Working on a Bootstrap 4 grid layout, my goal is to vertically align content within a column while maintaining its full height.
Here is my current layout for reference: https://i.sstatic.net/6RWx3.png
I am aiming for the content alignment to look like this instead: https://i.sstatic.net/ZuqO7.png
Current CSS:
html, body {
height: 100%;
}
.flex-fill {
flex: 1;
}
Current HTML:
<div class="container d-flex h-100 flex-column">
<div class="row flex-fill d-flex">
<div class="col-8 bg-dark m-2">
TEXT
</div>
<div class="col bg-dark m-2">
TEXT
</div>
</div>
<div class="row flex-fill d-flex">
<div class="col bg-dark m-2">
TEXT
</div>
</div>
</div>
For a live example, check out this JSFiddle.
I have attempted to use the .align-self-center class to center the content vertically within the row, but it resulted in losing the full height of the column.
If you have any suggestions on how to achieve the desired layout, I would greatly appreciate your insights!
Thank you for your assistance!