Flexbox

Justify Content

Utilities for controls how flex items are positioned along container's main axis.


Variant

Active Checked Child-Selection Dark Mode Disabled Expand First-Last-Selection First-Letter Focus Focus-Visible Focus-Within Fullscreen Group-Focus Group-Hover Hover Landscape Light Mode Portrait Reduce-Motion Responsive Selection-Hover Visited

API

classcss
justify-startjustify-content: flex-start
justify-centerjustify-content: center
justify-endjustify-content: flex-end
justify-betweenjustify-content: space-between
justify-aroundjustify-content: space-around

Usage

Set flex child elements to be positioned at the beginning with justify-start.

1
2
3
<div class="flex justify-start">
<div>...</div>
<div>...</div>
<div>...</div>
</div>
HTML
.dummy {
@extend
.flex,
.justify-start;
}
SCSS

Set flex child elements to be positioned at the center with justify-center.

1
2
3
<div class="flex justify-center">
<div>...</div>
<div>...</div>
<div>...</div>
</div>
HTML
.dummy {
@extend
.flex,
.justify-center;
}
SCSS

Set flex child elements to be positioned at the end of the available parent element spacing with justify-end.

1
2
3
<div class="flex justify-end">
<div>...</div>
<div>...</div>
<div>...</div>
</div>
HTML
.dummy {
@extend
.flex,
.justify-end;
}
SCSS

Set flex child elements to be positioned at the beginning and the ending of the available parent element spacing with justify-between.

1
2
3
<div class="flex justify-between">
<div>...</div>
<div>...</div>
<div>...</div>
</div>
HTML
.dummy {
@extend
.flex,
.justify-between;
}
SCSS

Set flex child elements to be positioned spacing between elements evenly of the available parent element with justify-around.

1
2
3
<div class="flex justify-around">
<div>...</div>
<div>...</div>
<div>...</div>
</div>
HTML
.dummy {
@extend
.flex,
.justify-around;
}
SCSS