Note: This documentation is preliminary and is subject to change.
Sets or retrieves
the distance between the borders of adjoining cells in a table.
Syntax
HTML |
{ border-spacing : sSpacing }
|
---|
Scripting | [ sSpacing = ] object.style.borderSpacing [ = v ] |
---|
Possible Values
sSpacing | String that
specifies or receives
one or two length values.
length |
A floating-point number, followed by either an absolute units designator
(cm ,
mm ,
in ,
pt ,
or pc )
or a relative units designator
(em ,
ex ,
or px ).
For more information about the supported length units,
see CSS Length Units Reference.
|
|
The property is read/write
for all objects except the following, for which it is read-only:
currentStyle.
The property has no default value. The Cascading Style Sheets (CSS) attribute is
not inherited.
Remarks
The length values specify the distance that separates adjoining cell borders.
If one length is specified, it represents both the horizontal and vertical spacing.
If two are specified, the first represents the horizontal spacing,
the second the vertical spacing. Negative lengths are ignored.
The distance between the table border and the borders of the cells
on the edge of the table is the
padding
of the table for that side, plus the relevant
border-spacing distance.
For example, on the right side the distance is
padding-right
plus the horizontal border-spacing.
This property requires Internet Explorer to be in IE8 mode rendering.
Standards Information
This property is defined in
Cascading Style Sheets (CSS), Level 2 Revision 1 (CSS2.1) .
Applies To
|
currentStyle,
runtimeStyle,
style,
TABLE |
See Also
borderCollapse