Align Items
Utilities for controlling how flex items are positioned along a container's cross axis.
Class | Properties |
---|---|
.ai-stretch | align-items: stretch |
.ai-start | align-items: flex-start; |
.ai-center | align-items: center; |
.ai-end | align-items: flex-end; |
.ai-baseline | align-items: baseline; |
Stretch
Use .ai-stretch
to stretch items to fill the flex container's cross axis.
Start
Use .ai-start
to align items to the start of the flex container's cross axis.
Center
Use .ai-center
to align items along the center of the flex container's cross axis..
End
Use .ai-end
to align items to the end of the flex container's cross axis.
Baseline
Use .ai-baseline
to align items along the flex container's cross axis such that all of their baselines align.
Responsive
To control the alignment of 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.