Webmaster

References : Style sheets


Table properties

The CSS table model is based on that of the HTML 4.0 specification. It encompasses tables, captions, rows, row groups, columns, column groups, and cells. In CSS2, tables can be rendered visually or aurally. Authors specify how headers and data will be read through the properties described in the section on aural style sheet properties.

border-collapse | border-spacing | caption-side | column-span, row-span | empty-cells | table-layout

border-collapse
Selects a table border model.
 
CSS2 valuecollapse | separate | inherit
 
Initial valuecollapse
 
Applied to Table and inline-table elements.
 
Inherited Yes.
 
 Top
border-spacing
Specifies the distance between adjacent cells in the separated borders model.
 
CSS2 value<length> | <length> ? | inherit
 
Initial value0
 
Applied to Table and inline-table elements.
 
Inherited Yes.
 
 Top
caption-side
Specifies the position of the caption element's box with respect to the table element box.
 
CSS2 valuetop | bottom | left | right | inherit
 
Initial valuetop
 
Applied to Table caption elements.
 
Inherited Yes.
 
 Top
column-span, row-span
Specifies the respective number of columns and lines a cell spans.
 
CSS2 value<integer> | inherit
 
Initial value1
 
Applied to Table cells, columns, column group elements (column-span); table cell elements (row-span).
 
Inherited No.
 
 Top
empty-cells
In the separated borders model, this property specifies how the borders around cells with non-visible content should be rendered.
 
CSS2 valueborders | no-borders | inherit
 
Initial valueborders
 
Applied to Table cell elements.
 
Inherited Yes.
 
 Top
table-layout
Controls the algorithm used to lay out table cells.
 
CSS2 valueauto | fixed | inherit
 
Initial valueauto
 
Applied to Table and inline-table elements.
 
Inherited No.
 
Notes The fixed layout depends on the width of the table and the columns, as well as on the cell spacing, whereas the Auto layout depends on the content of the cells.
 
 Top