CSS table layout Property
CSS table-layout Property
The table-layout property is used to define the algorithm used to lay out table cells, rows, and columns. If its value is set to fixed then the table will render faster. It is because users will be able to see the top of the table while the browser loads and renders the rest of table. It gives the impression of faster page loads.
Default Value:-
Its default value is auto.
Syntax:-
Its syntax is:- table-layout: auto | fixed | initial | inherit;
Further Explanation:-
Value | Description |
---|---|
auto | Browsers use an automatic table layout algorithm. |
fixed | Sets a fixed table layout algorithm. The table and column widths are set by the widths of the table and col or by the width of the first row of cells. |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |