Class | Properties |
.align-items-start | align-items: flex-start; |
.align-items-center | align-items: center; |
.align-items-end | align-items: flex-end; |
.align-items-baseline | align-items: baseline; |
.align-items-stretch | align-items: stretch; |
Usage
Start
Use .align-items-start
to align items at the start of the cross axis.
Center
Use .align-items-center
to center items in the cross-axis.
End
Use .align-items-end
to align items at the end of the cross axis.
Baseline
Use .align-items-baseline
to align items so that their baselines align.
Stretch
Use .align-items-stretch
to have items stretch to fill the container.
Variants
By default, only responsive variants are generated for align items utilities.
Responsive
To control the flex alignment of items of an element at a specific breakpoint, add a {screen}:
prefix to any existing align items utility.
For example, use .md:align-items-center
to apply the align-items-center
utility at only medium screen sizes and above.
Hover-state
To include hover-state variants like .hover:align-items-center
, add "align-items"
to the $hover-variants
variable when recompiling your CSS:
$hover-variants: (
// ...
"align-items",
);