O'Reilly logo

CSS Pocket Reference, 4th Edition by Eric A. Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

table-layout

Values:

auto | fixed

Initial value:

auto

Applies to:

Elements with a display value of table or inline-table

Inherited:

No

Computed value:

Same as declared value

Description:

Defines whether a table element should be laid out using an automatic layout algorithm or a fixed-layout algorithm. The benefit of the automatic algorithm is that it’s more like what authors are used to from more than a decade of browser behavior. The fixed-layout algorithm is theoretically faster and more predictable.

Examples:

table.data {table-display: fixed;}
table.directory {table-display: auto;}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required