justify-content:

1
2
3


<div class="container">
<div class="flex-item">1</div>
<div class="flex-item">2</div>
<div class="flex-item">3</div>
<div class="flex-item">4</div>
</div>

.container{
justify-content: flex-startflex-endcenterspace-betweenspace-aroundspace-evenly;
}

Back