I thought that height: max-content
might do the trick but it didn't.
I don't want to fix this by adding another div. Is there a way to do this by using parent and only 3 child elements?
.container {
display: flex;
flex-wrap: wrap;
}
.item {
flex-basis: 54%;
background: #000;
margin: 1px;
height: max-content;
}
.item.itm1 {
flex-basis: 44%;
height: 100px;
}
<div class="container">
<div class="item itm1">1</div>
<div class="item itm2">2</div>
<div class="item itm3">3</div>
</div>