It's no problem to give one element the same height inside flexbox items but I can't get it work with more than one item.
Fiddle: https://jsfiddle.net/no9jkj7m
You see that for the first 2 items it works as it should: the h2 titles have the same height. But this doesn't work anymore if the content below the headings has variable height like in the last 2 items.
The headings for the last 2 items should have the same height and the images should be aligned to the top (without spacing below the headings).
Thanks for your help.
ul {
display: flex;
}
li {
box-sizing: border-box;
display: flex;
padding: 15px;
width: 50%;
}
.inner {
background-color: #FAFAFA;
display: flex;
flex-direction: column;
padding: 10px;
width: 100%;
}
h2 {
flex: 1 1 auto;
}