Align self
Utilities for controlling how an individual flex item is positioned along its container's cross axis
Class reference
Auto
Use .self-auto
to align an item based on the value of the flex container’s align-items
property:
Start
Use .self-start
to align an item to the start of the flex container’s cross axis, despite the container’s align-items
value:
Center
Use .self-center
to align an item along the center of the flex container’s cross axis, despite the container’s align-items
value:
End
Use .self-end
to align an item to the end of the flex container’s cross axis, despite the container’s align-items
value:
Stretch
Use .self-stretch
to stretch an item to fill the flex container’s cross axis, despite the container’s align-items
value:
Responsive
To control the alignment of a flex item at a specific breakpoint, add a {screen}:
prefix to any existing utility class. For example, use md:self-end
to apply the self-end
utility at only medium screen sizes and above.
For more information about Elements’ responsive design features, check out the Responsive Design documentation.
On this Page
v1.13.5