Justify Content
Utilities for controlling how flex items are positioned along a container's main axis.
Class | Properties |
---|---|
.jc-start | justify-content: flex-start; |
.jc-center | justify-content: center; |
.jc-end | justify-content: flex-end; |
.jc-between | justify-content: space-between; |
.jc-around | justify-content: space-around; |
Start
Use .jc-start
to justify items against the start of the flex container's main axis.
Center
Use .jc-center
to justify items along the center of the flex container's main axis.
End
Use .jc-end
to justify items against the end of the flex container's main axis.
Space between
Use .jc-between
to justify items along the flex container's main axis such that there is an equal amount of space between each item.
Space around
Use .jc-around
to justify items along the flex container's main axis such that there is an equal amount of space around each item.
Responsive
To justify flex items at a specific breakpoint, add @{breakpoint}
add the end of the utility class.
Variants
By default, only responsive variants are generated for this utility. You can control which variants are generated by modifying the $utility-configuration
in _settings.scss.