Table Layout
@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')
Title | Author | Views |
---|---|---|
Intro to CSS | Adam | 858 |
A Long and Winding Tour of the History of UI Frameworks and Tools and the Impact on Design | Adam | 112 |
Intro to JavaScript | Chris | 1,280 |
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')
Title | Author | Views |
---|---|---|
Intro to CSS | Adam | 858 |
A Long and Winding Tour of the History of UI Frameworks and Tools and the Impact on Design | Adam | 112 |
Intro to JavaScript | Chris | 1,280 |
Customizing
@include('_partials.variants-and-disabling', [ 'utility' => [ 'name' => 'table layout', 'property' => 'tableLayout', ], 'variants' => [ 'responsive', ], ])