I have a nicely defined grid system:
.col-3-grid {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.col-3-grid .grid-item {
-webkit-box-flex: 0;
-webkit-flex: 0 0 32%;
-ms-flex: 0 0 32%;
flex: 0 0 32%;
max-width: 33.333333%;
}
It looks good when there are 3 elements on a line:
Elements look good when they're 3.
But the moment an uneven number of items that are not first-row 2 or any other rows multiple or 3, this happens:
Elements look bad when they're 5, 8 or so.
Between the 4th and 6th items, there's a gap. This is expected, but this approach is so elegant, I really don't wanna give it up for justify-content: flex-start
because then I'd need to add paddings to each of my elements and they'd never align with others.
In short, I wanna keep space-between
but make the items go in a line on each row.