.row {
display: flex;
}
section {
display: flex;
flex: 1 1 0;
background: #eee;
}
h1, h2, p {
text-align: center;
}
button {
margin: 10px auto;
display: block;
}
<div class="row">
<section>
<div>
<h1>Title</h1>
<h2>Subheading</h2>
<p>This is some content. This is some content. This is some content.</p>
<button>Button</button>
</div>
</section>
<section>
<div>
<h1>Title</h1>
<h2>Subheading</h2>
<p>This is some longer content. This is some longer content. This is some longer content. This is some longer content. This is some longer content. This is some longer content. This is some longer content. This is some longer content.</p>
<button>Button</button>
</div>
</section>
<section>
<div>
<h1>Title</h1>
<h2>Subheading</h2>
<p>This is more content. This is more content.</p>
<button>Button</button>
</div>
</section>
</div>
The above snippet uses flexbox for equal height columns. How can each column's button get aligned to the bottom? Is this possible with flexbox, or do we have to use position: relative & position: absolute?
align-self:flex-end;on the button but I can't get it to work...