VOOZH about

URL: https://www.geeksforgeeks.org/css/tailwind-css-flex-grow/

⇱ Tailwind CSS Flex Grow - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Tailwind CSS Flex Grow

Last Updated : 23 Jul, 2025

The CSS flexbox is a vital feature to develop the frontend, there is two flex-grow available in tailwind CSS all the properties are covered as in class form. It is the alternative of CSS flex grow Property for the fast development of the front-end. This class specifies how much the item will grow compared to other items inside that container. In other words, it is the ability of an item to grow compared to other items present inside the same container.

Flex Grow: 

  • flex-grow-0 
  • flex-grow

flex-grow-0: This class restricts the growing feature, it has the ability of an item to grow compared to content present inside the same container.

Syntax:

<element class="flex-grow-0"> Contents... </element>

Example:

Output:

👁 Image

flex-grow: This class does not restrict the growing feature, it has the ability of an item to grow compared to the space left on the screen.

Syntax:

<element class="flex-grow"> Contents... </element>

Example:

Output:

👁 Image
Comment