table-layout property
Browser support · legacy reference
ChromeFully supports
SafariFully supports
FirefoxFully supports
Internet ExplorerPartial support
EdgeFully supports
OperaFully supports
Description
CSS table-layout represents whether the the width of table columns should be fixed or automatically calculated.
Syntax
table-layout : auto | fixed
Property values
autoDefault
-
In this auto mode, the width of table columns depends upon the content within table cells.
- Try it
table-layout: auto; fixed
-
In this fixed mode, the width of table columns does not depend upon the the content of table cells.
The width of columns is calculated from the size of cells present in the first table row. In this case, equal share of space is distributed among the table cells.
- Try it
table-layout: fixed;
Applicable to
It applies to table elements.