Extensible HyperText Markup Language

XHTML.com recommends: PSD to HTML Slicing Service and PSD to HTML by W3 Markup. see your link here

border-spacing

Definition

The border-spacing property specifies the distance between table cells. This property is applicable when table cells have their own border.

Below is a screen shot of a table where border-spacing is set to 0.

Screen shot of a Web browser showing a table with distance between table cells set to 0.

Below is a screen shot of a table where border-spacing is set to 5px.

Screen shot of a Web browser showing a table with distance between table cells set to 5 pixels.

Example

  1. table {border-spacing: 5px}

Characteristics

Possible values

length
Horizontal and vertical distance between table cells.
length length
The first value is the horizontal distance and the second value is the vertical distance between table cells.
inherit
Use the same computed value as the parent element for this property.

Default value

0

Applies to

Inherited

Yes

See also