Property Description
The table-layout property sets the table layout algorithm to be used for a table.
This property has the following syntax:
table-layout: auto|fixed|initial|inherit;
Property Values
| Value | Description |
|---|---|
| auto | (default) Automatic table layout algorithm:
|
| fixed | Fixed table layout algorithm:
|
| initial | Specifies that the value of the property should be set to the default value |
| inherit | Specifies that the value of the property should be inherited from the parent element |
Examples
This example sets the table layout algorithm to fixed.
table {
table-layout:fixed;
}
Browser Support
| Chrome | Firefox | IE | Safari | Opera |
|---|---|---|---|---|
| 14.0 | 1.0 | 5.0 | 1.0 | 7.0 |
Miscellaneous Information
| Inherited: | No |
|---|---|
| Defined In: | CSS2 |
| Default Value: | auto |
