style.borderSpacing (Property)

This defines the spacing between the adjacent bordered edges of the two elements.

Availability:

DOM level - 2
JavaScript - 1.5
JScript - 5.0
Internet Explorer - 5.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myStyle.borderSpacing
CSS syntax:border-spacing: aValue
Argument list:aValueA border spacing value

If borders are not collapsed and hence elements have borders that are independent of one another, this defines the spacing between the adjacent bordered edges of the two elements.

You can space elements apart, taking into account the fact that they have borders; this interposes some space between the objects so that you can clearly see the border around each one.

Warnings:

See also:style.borderCollapse