Click to Rate and Give Feedback
Properties
 borderSpacing Property
border-spacing Attribute | borderSpacing Property
New for Windows Internet Explorer 8
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

sSpacingString 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) World Wide Web link.

Applies To

currentStyle, runtimeStyle, style, TABLE

See Also

borderCollapse
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker