I was having problems getting a div justified to the bottom of a wrapping div so I created a code penexample to test it. I got it to work by setting the height to 100%. When I copied the test code into my web site, it stopped working. I then tried using Chrome and Firefox. It worked fine. It only fails in Safari. Any idea what might be breaking it? When it doesn't work, the green div is up against the one above it.
My goal is to have the green div flush with the bottom as shown in the test. Any other way to do it is fine with me. I did try a number of different things before this solution.
.flex-row {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.flex-col {
display: flex;
flex-direction: column;
flex-wrap: wrap;
height: 100%
}
.mf6 {flex: 0 0 50%;}
.theme-split-1 { background-color: #a7ef76; color: black }
<div class="flex-row">
<div class="mf6" style="border-bottom: 6px solid black">
<div class="flex-col" style="border-bottom: 6px solid blue">
<div class="mf6">
<p>Our students set the bar</p>
</div>
<div class="mf6 theme-split-1" style="align-self: stretch">
<p>Programs such as </p>
</div>
</div>
</div>
<div class="mf6">
<p>Text</p>
<p>Text</p>
<p>Text</p>
<p>Text</p>
<p>Text</p>
<p>Text</p>
<p>Text</p>
<p>Text</p>
</div>
</div>