2.8 KiB
| extends | title |
|---|---|
| _layouts.markdown | Flexbox |
Align Items
Tailwind provides a comprehensive set of Flexbox utilities out of the box to make it easy for you to implement complex layouts without having to write any new CSS.
Stretch Default
Use .items-stretch to stretch items to fill the flex container's cross axis:
@component('_partials.code-sample')
Start
Use .items-start to align items to the start of the flex container's cross axis:
@component('_partials.code-sample')
Center
Use .items-center to align items along the center of the flex container's cross axis:
@component('_partials.code-sample')
End
Use .items-end to align items to the end of the flex container's cross axis:
@component('_partials.code-sample')
Baseline
Use .items-baseline to align items along the flex container's cross axis such that all of their baselines align:
@component('_partials.code-sample')