Table Layout

Utilities for controlling the table layout algorithm.

@include('_partials.class-table', [ 'rows' => [ [ '.table-auto', 'table-layout: auto;', "Use an automatic table layout algorithm.", ], [ '.table-fixed', 'table-layout: fixed;', "Sets a fixed table layout algorithm.", ], ] ])

Auto

Use .table-auto to allow the table to automatically size columns to fit the contents of the cell.

@component('_partials.code-sample')

TitleAuthorViews
Intro to CSSAdam858
A Long and Winding Tour of the History of UI Frameworks and Tools and the Impact on DesignAdam112
Intro to JavaScriptChris1,280
@endcomponent

Fixed

Use .table-fixed 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.

You can manually set the widths for some columns and the rest of the available width will be divided evenly amongst the columns without explicit width.

@component('_partials.code-sample')

TitleAuthorViews
Intro to CSSAdam858
A Long and Winding Tour of the History of UI Frameworks and Tools and the Impact on DesignAdam112
Intro to JavaScriptChris1,280
@endcomponent

Customizing

@include('_partials.variants-and-disabling', [ 'utility' => [ 'name' => 'table layout', 'property' => 'tableLayout', ], 'variants' => [ 'responsive', ], ])

Tailwind UI is now in early access!