HTML Dog
Skip to navigation

CSS Property: table-layout

The algorithm with which a table should be drawn.

Applies to boxes set to display: table (of which table HTML elements are by default) or display: inline-table.

Possible Values

ValueDescription
fixedFor speed. Table and column widths are determined by the content of cells in the first row only.
autoFor precision. Table and column widths are determined by the content of all of the cells in table. Default.
inherit
initial
unset

Example


table { table-layout: fixed; }

Browser support