Skip to content

Justify content

Utilities for aligning flex items along the main axis.

ClassStyles
af-justify-startjustify-content: flex-start
af-justify-centerjustify-content: center
af-justify-endjustify-content: flex-end
af-justify-betweenjustify-content: space-between
af-justify-aroundjustify-content: space-around
af-justify-evenlyjustify-content: space-evenly
Basic example
A
B
C
<div class="af-flex af-justify-between" style="gap: 0.5rem;">
  <div class="af-badge">
    A
  </div>
  <div class="af-badge">
    B
  </div>
  <div class="af-badge">
    C
  </div>
</div>

All justify utilities support responsive variants using the @{bp} suffix:

  • af-justify-center@lg

See Responsive Suffix for syntax and breakpoints.