VOOZH about

URL: https://www.geeksforgeeks.org/css/tailwind-css-table-layout/

⇱ Tailwind CSS Table Layout - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Tailwind CSS Table Layout

Last Updated : 23 Jul, 2025

This class accepts lots of value in tailwind CSS in which all the properties are covered in class form. By using this class we can set the display of the layout of the table. In CSS, we do that by using the CSS table-layout property.

Table Layout classes:

  • table-auto
  • table-fixed

table-auto: This class is used to allow the table to automatically size columns to fit the contents of the cell.

Syntax:

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

Example:

Output:

👁 Image
Tailwind CSS table layout

table-fixed: This class is used to allow the table to ignore the content and use fixed widths for columns. The width of the first row will set the column widths for the whole table.

Syntax:

<element class="table-fixed">...</element>

Example:

Output:

👁 Image
Tailwind CSS layout
Comment