Browse documentation

Reference / Flexbox & grid

Justify content

Distribute remaining space along the main axis of a flex layout or align grid tracks on the inline axis.

Working example

Space-between pins the outer items to opposite ends. It needs unoccupied space along the main axis to have a visible effect.

HTML
<header class="flex justify-between gap-3 border-b pb-2">
  <strong>Print queue</strong>
  <span>4 jobs</span>
</header>

Class reference

ClassCSS declarations
justify-startjustify-content: flex-start;
justify-centerjustify-content: center;
justify-endjustify-content: flex-end;
justify-betweenjustify-content: space-between;
justify-aroundjustify-content: space-around;
justify-evenlyjustify-content: space-evenly;
justify-stretchjustify-content: stretch;
View full generated CSS
Compiled CSS
.justify-around {
  justify-content: space-around;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}
.justify-end {
  justify-content: flex-end;
}
.justify-evenly {
  justify-content: space-evenly;
}
.justify-start {
  justify-content: flex-start;
}
.justify-stretch {
  justify-content: stretch;
}