Is there a way to break an item in a flexbox and display it at the beginning of the next column, based on the max height of the box? See the image below for reference.
.flex{
display:flex;
flex-direction:column;
flex-wrap:wrap;
max-height:200px;
width:600px;
background:#fafafa;
}
.item{
background:#ddd;
height: 30px;
width: 100px;
margin-bottom:5px;
}
.gonextColumn {
background:#000
}
<div class="flex">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item gonextColumn"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>