How is it possible to align the last two items to the left? Sometimes there is a huge gap between the last two items. Is there some flexbox directive that fixes that?
.container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-content: space-between;
width: 250px;
border: 1px solid #000;
}
<div class="container">
<div>xxxxxxxx</div>
<div>xxxxxxxx</div>
<div>xxxxxxxx</div>
<div>xxxxxxxx</div>
<div>xxxxxxxx</div>
<div>xxxxxxxx</div>
<div>xxxxxxxx</div>
<div>xxxxxxxx</div>
</div>