Controls the positioning of flex and grid elements on a container’s main axis.
Class | Property |
jc-c | justify-content: center; |
jc-fe | justify-content: flex-end; |
jc-fs | justify-content: flex-start; |
jc-n | justify-content: normal; |
jc-s | justify-content: stretch; |
jc-sb | justify-content: space-between; |
jc-sa | justify-content: space-around; |
jc-se | justify-content: space-evenly; |
Center
Aligns flex items at the center of the container.
Flex End
Aligns flex items to the end of the container.
Flex Start
Aligns flex items to the start of the container.
Normal
Resets the alignment to its default state.
Stretch
Stretches flex items across the container (default for some cases).
Space Between
Distributes flex items with space between them.
Space Around
Distributes flex items with space around them.
Space Evenly
Distributes flex items with equal space between, before, and after them.
Using responsive modifiers
Using responsive breakpoints like sm:jc-*
,
md:jc-*
, lg:jc-*
, and xxl:jc-*
allows targeting specific utilities in
different viewports.
Using hover modifiers
Using :hover
modifiers such as h:jc-*
allows
you to override elements and change their values when hovering over them.