Nearby lessons
34 of 61📏 Tailwind CSS - Justify (Content, Items & Self)
📖 Justify Content – Overview
Justify Content utilities control how flex and grid items are positioned along the main axis (horizontal for flex-row).
These map to the CSS justify-content property.
📏 Justify Content Utilities
Available utilities:
justify-normal– Default positionjustify-start– Items at the startjustify-end– Items at the endjustify-center– Items centeredjustify-between– Space between itemsjustify-around– Space around itemsjustify-evenly– Space evenly distributedjustify-stretch– Items stretch to fill
📖 Justify Items – Overview
Justify Items utilities control how grid items are aligned along the inline (horizontal) axis within their grid area.
This maps to the CSS justify-items property.
📏 Justify Items Utilities
Available utilities:
justify-items-start– Items aligned to start of their celljustify-items-end– Items aligned to end of their celljustify-items-center– Items centered in their celljustify-items-stretch– Items stretch to fill their cell (default)
📖 Justify Self – Overview
Justify Self utilities control how an individual grid item is aligned along the inline (horizontal) axis within its grid area.
This overrides the justify-items set on the parent.
📏 Justify Self Utilities
Available utilities:
justify-self-auto– Inherits from parentjustify-self-start– Align to start of celljustify-self-end– Align to end of celljustify-self-center– Center in celljustify-self-stretch– Stretch to fill cell
🧠 Test Your Knowledge
4 QuestionsProgress: 0 / 4
Keep Going!Tailwind CSS - Align