HTML and CSS Reference
The border-spacing property provides the padding between borders of
table cells and takes two <length> values, first for the horizontal spac-
ing and second for vertical spacing. If only one <length> is provided, it
applies to both sides.
In the separated borders model, cells without content (or cells set to
visibility: hidden ) can have their borders and background styling
rendered or ignored.
■ show : Displays the borders and background of an empty cell (default)
■ hide : Hides the borders and background of an empty cell
Unlike block-level elements, the contents of cells can be vertically posi-
tioned inside of the cell.
■ top : The content of the cell is top aligned.
■ bottom : The content of the cell is bottom aligned.
■ middle : The content of the cell is centered in the cell (default).
The text-align property behaves normally when applied to table cells
(see Chapter 9).
Like the display values of block , inline , and others covered in
Chapter 6, non-table-related HTML elements may take on the layout