How to determine a table's width

table-layout

Specify how to determine the width of the table and the table's columns.

Property values

Specify one of these keywords:

auto The width of the table and its cells are adjusted to fit the content
fixed The table width and the individual column widths are set by the widths of table and col elements or by the width of the first row of cells.

Examples

table-layout: fixed;
table-layout
0

style > table > table-layoutHow to determine a table's width

🔗 🔎