Nearby lessons
36 of 61📐 Tailwind CSS - Place (Content, Items & Self)
📖 Place Content – Overview
Place Content is a shorthand utility that sets both align-content and justify-content
at the same time. It's useful for centering grid content both horizontally and vertically.
📏 Place Content Utilities
Available utilities:
place-content-center– Center on both axesplace-content-start– Start on both axesplace-content-end– End on both axesplace-content-between– Space between on both axesplace-content-around– Space around on both axesplace-content-evenly– Space evenly on both axesplace-content-stretch– Stretch on both axesplace-content-baseline– Baseline on both axes
📖 Place Items – Overview
Place Items is a shorthand that sets both align-items and justify-items simultaneously.
This maps to the CSS place-items property.
📏 Place Items Utilities
Available utilities:
place-items-start– Items at start on both axesplace-items-end– Items at end on both axesplace-items-center– Items centered on both axesplace-items-stretch– Items stretch on both axes (default)place-items-baseline– Items at baseline
📖 Place Self – Overview
Place Self is a shorthand that sets both align-self and justify-self for an individual item.
This maps to the CSS place-self property.
📏 Place Self Utilities
Available utilities:
place-self-auto– Inherits from parentplace-self-start– Align to start on both axesplace-self-end– Align to end on both axesplace-self-center– Center on both axesplace-self-stretch– Stretch on both axes
🧠 Test Your Knowledge
4 QuestionsProgress: 0 / 4
Keep Going!Tailwind CSS - Padding