Sams Teach Yourself HTML and CSS in 24 Hours (7th Edition)

There are a few advanced table properties that enable you to fine-tune the manner in which tables are rendered and displayed.

border-collapse

Usage

Sets the border model of a table.

Values

collapse, separate.

border-spacing

Usage

Sets the distance between the borders of adjacent cells.

Values

length length.

caption-side

Usage

Sets the position of the caption relative to the table.

Values

top, bottom, left, right.

empty-cells

Usage

Determines whether cells with no visible content should have borders.

Values

show, hide.

table-layout

Usage

Determines how the table is laid out.

Values

auto, fixed.

Notes

Speeds up browser rendering for fixed-size tables if you set it to fixed.

Категории