7.8 KiB
| extends | title | category |
|---|---|---|
| _layouts.markdown | Align Content - Flexbox | Flexbox |
Align Content
Start Default
Use .content-start to pack lines in a flex container against the start of the main axis:
@component('_partials.code-sample')
Center
Use .content-center to pack lines in a flex container in the center of the main axis:
@component('_partials.code-sample')
End
Use .content-end to pack lines in a flex container against the end of the main axis:
@component('_partials.code-sample')
Space between
Use .content-between to distribute lines in a flex container such that there is an equal amount of space between each line:
@component('_partials.code-sample')
Space around
Use .content-around to distribute lines in a flex container such that there is an equal amount of space around each line:
@component('_partials.code-sample')
Responsive
To control the alignment of flex content at a specific breakpoint, add a {breakpoint}: prefix to any existing utility class. For example, use md:content-around to apply the content-around 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')