CSS table-layout property
Example
Set the table layout algorithm:
table
{
table-layout:fixed;
}
Try it »
Property definition and usage
The table-layout property sets the table layout algorithm for a table.
| Default value: | auto |
|---|---|
| Inherited: | no |
| Version: | CSS2 |
| JavaScript syntax: | object.style.tableLayout="fixed" |
Browser support





All major browsers support the table-layout property.
Note: IE7 and earlier do not support the "inherit" value. IE8 requires a !DOCTYPE. IE9 supports "inherit".
Attribute values
| Value | Description |
|---|---|
| automatic | Default. Column widths are set by the content of the cells. |
| fixed | Column widths are set by the table width and column widths. |
| inherit | Specifies that the table-layout property should be inherited from the parent element. |
Related Articles
CSS Tutorial: CSS Table