I am currently trying to style a modal, and need to get a button to be placed at the bottom of a div. This is within a few other elements, and what I've noticed is that at some point flex-grow and justify-content seem to stop adjusting the content.
Does Flexbox work in infinite depth? Or is there a time when it simply refuses to resize, due to being within too many elements?
<div class="modal" style="display:flex; flex-direction:column;">
<div class="modal-header"style="flex-grow:1;"></div>
<div class="modal-row" style="display:flex;flex-grow:18;">
<div class="modal-page-left"></div>
<div class="modal-content"style="display:flex;flex-direction:column;">
<div class="content-title" style="flex-grow:1"></div>
<div class="content-image"style="flex-grow:18"></div>
<div class="content-button"style="flex-grow:1"></div>
</div>
<div class="modal-page-right"></div>
</div>
<div class="modal-footer hidden" style="flex-grow:1;"></div>
What I basically need, is for content-button to be at the buttom. It should be noted that modal-footer, is actually hidden, so it's flex grow is ignored.