Consider this fiddle: https://jsfiddle.net/vs9a4toz/
I want my buttons to be at the bottom of their divs.
I tried using align-self: flex-end
on their container div. But that ends up with the content of that div gets aligned at the end not the div itself.
.container {
width: 600px;
display: flex;
flex-flow: row;
border: 2px solid red;
}
.box1,
.box2,
.box3 {
width: 100%;
border: 1px solid blue;
display: flex;
flex-flow: column;
size: 100px;
}
.content {
text-align: center;
}
.buttons {
display: flex;
flex-flow: column;
}
<div class="container">
<div class="box1">
<div class="content">
<p>HEJ</p>
</div>
<div class="buttons">
<button>ONEONE</button>
<button>TWOTWO</button>
</div>
</div>
<div class="box2">
<div class="content">
<p>HEJ HEJ HEJ HEJ HEJ HEJ HEJ HEJ HEJ HEJ HEJ HEJ HEJ HEJ HEJ HEJ HEJ HEJ HEJ HEJ HEJ HEJ HEJ HEJ </p>
</div>
<div class="buttons">
<button>ONEONE</button>
<button>TWOTWO</button>
</div>
</div>
<div class="box3">
<div class="content">
<p>HEJ</p>
</div>
<div class="buttons">
<button>ONEONE</button>
<button>TWOTWO</button>
</div>
</div>
</div>