table-layout
Controls the algorithm used to lay out table cells, rows, and columns. 'Fixed' allows for faster rendering and consistent column widths based on the table's width.
It is documented as part of the CSS Table specification.
Syntax
/* Usage Example */
.data-grid {
table-layout: fixed;
width: 100%;
/* ensures columns stay consistent regardless of content amount */
}
/* Syntax */
table-layout: auto;
table-layout: fixed;
/* Global values */
table-layout: inherit;
table-layout: initial;
table-layout: revert;
table-layout: revert-layer;
table-layout: unset;
table-layout Browser support
Widely available
Since
2015 96% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.
14+
1+
1+
12+