Extensible HyperText Markup Language

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

XStandard XHTML WYSIWYG editor
A standards-compliant WYSIWYG editor component for content management applications. The editor generates valid XHTML and uses CSS for formatting. Free version is available.

Check out XStandard