CSS table-layout property

Usage

Determines which rendering algorithm should be used to display a fixed-width table. Not supported by all browsers.

Values

  • auto - default; the column widths are determined by all cells within that column
  • fixed - column widths are determined by the first row only, meaning that the table renders slightly faster

Example

Code:

table {
  table-layout: fixed;
}