Table Properties


The CSS table model is based on the HTML 4.01 table model, which consists of tables, captions, rows, row groups, columns, column groups, and cells. In CSS2, tables can be rendered visually and aurally. Authors can specify how headers and data will be spoken through attributes defined previously in "Aural Style Sheet Properties."

border-collapse

Usage

Selects a table's border model.

CSS2 Values

collapse | separate | inherit

Initial

collapse

Applies to

Table and inline table elements.

Inherited

Yes.


border-spacing

Usage

In separated borders model, specifies the distance that separates the adjacent cell borders.

CSS2 Values

<length> | <length> ? | inherit

Initial

0

Applies to

Table and inline table elements.

Inherited

Yes.


caption-side

Usage

Specifies the position of the caption box with respect to the table box.

CSS2 Values

top | bottom | left | right | inherit

Initial

top

Applies to

Table caption elements.

Inherited

Yes.


column-span, row-span

Usage

Specifies the number of columns or rows (respectively) spanned by a cell.

CSS2 Values

<integer> | inherit

Initial

1

Applies to

Table cell, table column, and table column group elements (column-span); table cell elements (row-span).

Inherited

No.


empty-cells

Usage

In the separated tables model, specifies how borders around cells that have no visible content are rendered.

CSS2 Values

borders | no-borders | inherit

Initial

borders

Applies to

Table cell elements.

Inherited

Yes.


table-layout

Usage

Controls the algorithm used to lay out the table cells.

CSS2 Values

auto | fixed | inherit

Initial

auto

Applies to

Table and inline table elements.

Inherited

No.

Notes

fixed table layout depends on the width of the table and its columns. auto table layout depends on the contents of the cells.





Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day
Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day (5th Edition)
ISBN: 0672328860
EAN: 2147483647
Year: 2007
Pages: 305

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net