VOOZH about

URL: https://www.geeksforgeeks.org/css/tailwind-css-grid-auto-rows/

⇱ Tailwind CSS Grid Auto Rows - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Tailwind CSS Grid Auto Rows

Last Updated : 23 Jul, 2025

This class accepts more than one value in tailwind CSS in which all the properties are covered as in class form. It is the alternative to the CSS grid-auto-rows property. This class is used to specify the size for the rows of implicitly generated grid containers. This class is used to utilities to control the size implicitly-created grid rows.

Grid Auto Rows classes:

  1. auto-rows-auto
  2. auto-rows-min
  3. auto-rows-max
  4. auto-rows-fr

auto-rows-auto: It is the default value. The size is determined implicitly according to the size of the container.

Syntax:

<element class="auto-rows-auto">..</element>

Example:

Output:

👁 Image

auto-rows-min: It specifies the size depending on the smallest item in the container.

Syntax:

<element class="auto-rows-min">..</element>

Example:

Output:

👁 Image

auto-rows-max: It specifies the size depending on the largest item in the container.

Syntax:

<element class="auto-rows-max">..</element>

Example:

Output:

👁 Image

auto-rows-fr: It specifies the size in the range of [min, max] greater than or equal to min and less than or equal to max.

Syntax:

<element class="auto-rows-fr">..</element>

Example:

Output:

👁 Image
Auto Rows
Comment