5.1 KiB
| extends | title | category |
|---|---|---|
| _layouts.markdown | Align Items - Flexbox | Flexbox |
Align Self
Auto Default
Use .self-auto to align an item based on the flex container's align-items value:
@component('_partials.code-sample')
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:
@component('_partials.code-sample')
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:
@component('_partials.code-sample')
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:
@component('_partials.code-sample')
Stretch
Use .self-stretch to stretch an item to fill the flex container's cross axis, despite the container's align-items value:
@component('_partials.code-sample')
Responsive
To control the alignment of a flex item at a specific breakpoint, add a {breakpoint}: 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 Tailwind's responsive design features, check out the Responsive Design documentation.
@component('_partials.responsive-code-sample') @slot('none')