Layout Options

  • Fixed Header
    Makes the header top fixed, always visible!
  • Fixed Sidebar
    Makes the sidebar left fixed, always visible!

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:
  • The column width is set by the widest unbreakable content in the cells
fixed Fixed table layout algorithm:
  • The horizontal layout only depends on the table's width and the width of the columns, not the contents of the cells
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