XML technologies / CSS / Advanced websites with CSS / CSS property reference / table-layout

(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)

The property table-layout describes how an HTML table is laid out. Besides the traditional calculation of a table as the sum of all its cells and borders, another method calculates only its first row and applies that result to all following rows. This lays out the table much faster, but its cells are no longer adjusted to their contents. Content may overflow.

Inherited: no

See also: max-height, min-height

Values

auto or fixed.

Default value: auto

Compatibility

CSS version: 2

Works in Internet Explorer for Windows from version 5 and in Opera 7.

Example

The following rule lays out tables of the class einfach using the faster method fixed:

table.einfach {
 table-layout: fixed;
}

  

 

 

 

back to top