CSS table-layout Property
Definition and Usage
The table-layout property sets the table layout algorithm to be used for a table.
Default value: | auto |
---|---|
Inherited: | no |
Animatable: | no. Read about animatable |
Version: | CSS2 |
JavaScript syntax: | object.style.tableLayout="fixed" Try it |
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
Property | ||||||
---|---|---|---|---|---|---|
table-layout | 14.0 | 12.0 | 5.0 | 1.0 | 1.0 | 7.0 |
CSS Syntax
table-layout: auto|fixed|initial|inherit;
Property Values
Value | Description | Play it |
---|---|---|
auto | Automatic table layout algorithm (this is default):
|
Play it » |
fixed | Fixed table layout algorithm:
|
Play it » |
initial | Sets this property to its default value. Read about initial | Play it » |
inherit | Inherits this property from its parent element. Read about inherit |
Related Pages
CSS tutorial: CSS Table
HTML DOM reference: tableLayout property