I'm struggling with creating a flexbox responsive grid and need some guidance.
My goal is to make all the .block
divs have equal height, with the .bottom
div positioned at the bottom. The current solution achieves this, but when the h2
heading spans multiple lines, I want all headings in the row to be the same height.
Is there a way to accomplish this?
I've created a Codepen demo to illustrate the issue: http://codepen.io/kenvdbroek/pen/eZKdEQ
h1,
h2,
h3 {
margin: 0;
}
body {
margin: 0;
padding: 0;
}
ul.clean-list {
margin: 0;
padding: 0;
}
ul.clean-list li {
list-style: none;
margin-bottom: 5px;
}
li:last-child {
margin-bottom: 0;
}
.container {
padding-top: 50px;
}
.block {
margin-bottom: 30px;
border: 1px solid red;
}
.block > .bottom {
border: 1px solid blue;
}
@media only screen and (min-width: 480px) {
...
<div class="container">
...
...
</div>