The property column-fill defines how to fill columns of an element.
column-fill: balance | auto;
.mydiv {
column-count: 3;
column-fill: balance;
height: 100px;
border: 1px solid black;
}
.div2 {
column-count: 3;
column-fill: auto;
height: 100px;
border: 1px solid black;
}
balance: fills each column with the same amount of content, but avoids the columns to grow taller than the height
.
auto: fills each column until it reaches the height
and until it runs out of content.