.flex-body {
display: flex;
flex-wrap: wrap;
}
.flex-body div{
width: 50%;
align-items: flex-start;
}
<div class="flex-body">
<div style="background: #0980cc; height:100px;"></div>
<div style="background: #09cc69;height: 200px;"></div>
<div style="background: #cc092f;height:170px;"></div>
<div style="background: #0980cc; height:130px;"></div>
<div style="background: #09cc69;height: 100px;"></div>
<div style="background: yellow;height: 100px;"></div>
</div>
I want to fill the white space between rows in flex container, each element has a different height and I want the element to be stacked on top of each other directly
Check this fiddle