Name

table-layout — NN n/a IE n/a CSS 2

Synopsis

Inherited: No

Determines whether the browser uses computed heights and widths of the entire table’s data to begin rendering the table or relies on the TABLE element’s size attributes and uses the first row’s cell widths to begin rendering table content. When the attribute is set to auto, the browser must load all of the table cells and their content before the first row of data can be rendered, causing a brief delay in drawing the table. Setting the value to fixed allows table rendering to begin sooner, which is helpful for large tables.

CSS Syntax

table-layout: layoutType

Value

Two possible constant values: auto | fixed.

Initial Value

auto

Applies To

TABLE elements.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.