Nearby lessons
35 of 61βοΈ Tailwind CSS - Align (Content, Items & Self)
π Align Content β Overview
Align Content utilities control how rows of flex/grid items are distributed along the cross axis when there is extra space. This only has effect when there are multiple lines of items (flex-wrap or multi-row grid).
π Align Content Utilities
Available utilities:
content-normalβ Default packingcontent-startβ Lines at the startcontent-endβ Lines at the endcontent-centerβ Lines centeredcontent-betweenβ Space between linescontent-aroundβ Space around linescontent-evenlyβ Space evenly distributedcontent-stretchβ Lines stretch to fillcontent-baselineβ Lines aligned to baseline
π Align Items β Overview
Align Items utilities control how flex and grid items are aligned along the cross axis (vertical for flex-row).
This maps to the CSS align-items property.
π Align Items Utilities
Available utilities:
items-startβ Items at the start of cross axisitems-endβ Items at the end of cross axisitems-centerβ Items centered on cross axisitems-baselineβ Items aligned to text baselineitems-stretchβ Items stretch to fill (default)
π Align Self β Overview
Align Self utilities override the align-items value for individual flex or grid items.
This maps to the CSS align-self property.
π Align Self Utilities
Available utilities:
self-autoβ Inherits from parent align-itemsself-startβ Align to start of cross axisself-endβ Align to end of cross axisself-centerβ Center on cross axisself-stretchβ Stretch to fillself-baselineβ Align to baseline
π§ Test Your Knowledge
6 QuestionsProgress: 0 / 6
Keep Going!Tailwind CSS - Place