Easy Tutorial
❮ Css3 Pr Column Span Pr Border Top Style ❯

CSS table-layout Property

Example

Set the layout algorithm for a table:


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 versions do not support the "inherit" value. IE8 requires the !DOCTYPE to be defined. IE9 supports "inherit".


Property Values

Value Description
automatic Default. Column widths are determined by the content of the cells.
fixed Column widths are determined 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 Tables

❮ Css3 Pr Column Span Pr Border Top Style ❯