VOOZH about

URL: https://www.geeksforgeeks.org/css/tailwind-css-alignment-complete-reference/

⇱ Tailwind CSS Alignment Complete Reference - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Tailwind CSS Alignment Complete Reference

Last Updated : 23 Jul, 2025

Tailwind CSS is basically a utility first CSS framework for rapid custom UI. Tailwind CSS Alignment controls how the flex and grid items are aligned along with the container for fast front-end development. suppose Tailwind CSS Justify Content controlling how flex and grid items are positioned along a container's main axis and Justify items controlling how grid items are aligned along their inline axis.

Tailwind CSS Class

Description

Justify ContentIt describe the alignment of the flexible box container.
Justify ItemsIt controls how grid items are aligned along their inline axis.
Justify SelfIt specifies the alignment of a content's position along with the appropriate axis.
Align ContentIt specifies the alignment between the lines inside a flexible container.
Align ItemsIt aligns the flex Items across the axis.
Align SelfIt controls how an individual flex or grid item is positioned along its container's cross axis.
Place ContentIt controls how content is justified and aligned at the same time.
Place ItemsIt controls how items are justified and aligned at the same time.
Place SelfIt controls how an individual item is justified and aligned at the same time.

Below example will give you a brief idea about the Backgrounds of Tailwind CSS:

Example:

Output:

👁 Tailwind CSS Alignment
Tailwind CSS Alignment
Comment
Article Tags:
Article Tags: