GeoffKnagge.com

Tables

caption-side

Used to set the position of a table's caption with respect to the table.
Valuetop | bottom | left | right | inherit
Initialtop
Used withtable-caption elements
Inheritedyes
Examplecaption {caption-side : left}
To align the text of a caption, you can use the 'text-align' and 'vertical-align' properties.

table-layout

Used to select the algorithm which is used to draw the table.
Valueauto | fixed | inherit
Initialauto
Used withtable elements
Inheritedno
Exampletable {table-layout : fixed}
The Fixed algorithm is faster, since it divides up unused space to determine column widths, rather than adjusting widths to obtain optimal appearance.
The Auto algorithm requires the entire table to be downloaded before it is displayed, but often provides a better appearance.

border-collapse

Valuecollapse | seperate | inherit
Initialcollapse
Used withtable elements
Inheritedyes
Exampletable {border-collapse : seperate}
The seperate value gives each cell its own border, with the border-spacing property (described below) giving the seperation of the borders.

border-spacing

Specifies the space between borders when used with separated borders.
Valuelength [length] | inherit
Initial0
Used withtable elements
Inheritedyes
Exampletable {border-spacing : 0.5em 0.5em}
The lengths specify the horizontal and vertical distances respectively. If only one value is given, it is used for both.

empty-cells

Controls the drawing of borders around cells with no visibele content, when used with seperated borders.
Valueshow | hide | inherit
Initialshow
Used withtable cell elements
Inheritedyes
Exampletable {border-spacing : 0.5em 0.5em}
(C)opyright, Geoff Knagge.
Continued use of this site indicates your agreement to the Conditions of use and Privacy Policy.