Change Language


Follow Navioo On Twitter

border-spacing

Specifies the number of pixels between the border and its contents.

Browser/User Agent Support

IE Netscape Mozilla Opera Safari
no 6.0+ 1.0+ 5.0+ 1.2+

Usage

[spacing-horizontal] [spacing-vertical]

Example

To specify 6px of space on the sides and 12px of spacing above and below and element, use the following syntax: .myborderclass {border-spacing: 6px 12px;}.

For a demonstration of the empty-cells attribute, see the demo page on quirksmode:

http://www.navioo.com/html_css/Table_Style_330.dhtml

Remarks

To specify different values for horizontal and vertical spacing, specify two values with the horizontal value first.

Availability

W3C CSS2

Related

Ajax Javascript feed

↑ Grab this Headline Animator