CSS table-layout Property

Description

The table-layout property controls the algorithm used to lay out the table cells, rows, and columns.

Initial value
auto
Applies to
Table and inline-table elements
Inherited
No
Media
Visual
Computed value
As specified
Animatable
No
CSS Version
CSS2, CSS3
JavaScript syntax
object.style.tableLayout

Syntax

Formal syntax: auto | fixed | inherit

table-layout: auto;
table-layout: fixed;

Values

  • autoUse any automatic table layout algorithm.
  • fixedUse the fixed table layout algorithm.

Example

.class {
   table-layout: fixed;
}

Browser Support

Desktop
Explorer Edge Chrome Firefox Opera Safari
51214171
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
1.518410.13X