CSS table-layout Property


In CSS, the table-layout property is used to display the table's layout. This property is used to specify the algorithm used to layout <table> cells, rows, and columns.

Syntax

Example

Preview

Property Values

Value Description
auto Browsers employ an algorithm for automatic table layout. The width of the column is determined by the widest unbreakable content in the cells. The layout will be determined by the content.
fixed This function specifies a fixed table layout algorithm. The widths of the table and columns are determined by the widths of the table and col, or by the width of the first row of cells. Column widths are unaffected by cells in other rows. If there are no widths on the first row, the column widths are distributed evenly across the table, regardless of the content inside the cells.
initial This property is set to its default value.
inherit This property is inherited from its parent element.

Supported Browsers

Property Chrome Firefox Safari Edge / IE Opera
table-layout 14.0 1.0 1.0 5.0 7.0