VOOZH about

URL: https://www.geeksforgeeks.org/html/tailwind-css-place-content/

⇱ Tailwind CSS Place Content - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Tailwind CSS Place Content

Last Updated : 23 Jul, 2025

This class accepts lots of values in tailwind CSS. It is the alternative to the CSS Place Content property. This class is used to control how content is justified and aligned at the same time. To set the multiple property values in a single class. Here the place-content class can hold the value of the align-content and justify-content class values.  

Place Content Classes:

  • place-content-center 
  • place-content-start 
  • place-content-end 
  • place-content-between 
  • place-content-around 
  • place-content-evenly 
  • place-content-stretch 

place-content-center

This class aligns flex items at the center of the container.

Syntax:

<element class="place-content-center">...</element>

Example:

Output:

👁 Image

place-content-start

This class aligns flex items at the start of the container.

Syntax:

<element class="place-content-start">...</element>

Example:

Output:

👁 Image

place-content-end

This class aligns flex items at the end of the container.

Syntax:

<element class="place-content-end">...</element>

Example:

Output:

👁 Image

place-content-between

This class distributes flex lines space with equal space between them.

Syntax:

<element class="place-content-between">...</element>

Example:

Output:

👁 Image

place-content-around

This class distributes space equally around the flex lines.

Syntax:

<element class="place-content-around">...</element>

Example:

Output:

👁 Image

place-content-evenly 

This class defines the position with equal spacing between them but the spacing from corners differs.

Syntax:

<element class="place-content-evenly">...</element>

Example:

Output:

👁 Image

place-content-stretch

This class defines the line stretched to take the remaining space of the flex container. It is the default value.

Syntax:

<element class="place-content-evenly">...</element>

Example:

Output:

👁 Image
Comment
Article Tags: