References : Style sheets
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 value | collapse | separate | inherit |
| |
| Initial value | collapse |
| |
| 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 value | 0 |
| |
| 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 value | top | bottom | left | right | inherit |
| |
| Initial value | top |
| |
| 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 value | 1 |
| |
| 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 value | borders | no-borders | inherit |
| |
| Initial value | borders |
| |
| Applied to | Table cell elements. |
| |
| Inherited | Yes. |
| |
Top |
|
| table-layout |
|
|
| Controls the algorithm used to lay out table cells. |
| |
| CSS2 value | auto | fixed | inherit |
| |
| Initial value | auto |
| |
| 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 |
|