Set a fixed table layout:
The tableLayout property sets or returns the way to lay out table cells, rows, and columns.
The tableLayout property is supported in all major browsers.
Return the tableLayout property:
Set the tableLayout property:
Value | Description |
---|---|
auto | Column width is set by the widest unbreakable content. This is default.
|
fixed | Column width is set by the width of table and columns (not the content of the cells)
|
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Default Value: | auto |
---|---|
Return Value: | A String, representing the table layout algorithm used for a table |
CSS Version | CSS2 |
Return the table layout:
CSS tutorial: CSS Table
CSS reference: table-layout property