Export (0) Print
Expand All

borderSpacing property

Specifies the distance between the borders of adjoining cells in a table.

CSS 2.1, Section 17.6.1Internet Explorer 8

 

Syntax

HRESULT value = object.put_borderSpacing(BSTR v);HRESULT value = object.get_borderSpacing(BSTR* p);

Property values

Type: BSTR

one or two length values.

length (length)

Floating-point number, followed by a supported length unit.

inherit (inherit)

The property takes the same specified value as the property for the element's parent.

String format

<length> | inherit

CSS information

Applies Totable and inline-table elements
Mediavisual
Inheritedtrue
Initial Value0

Standards information

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 IHTMLRuleStyle::padding of the table for that side, plus the relevant IHTMLStyle6::borderSpacing distance. For example, on the right side the distance is IHTMLRuleStyle::paddingRight plus the horizontal IHTMLStyle6::borderSpacing.

This property requires Windows Internet Explorer to be in IE8 Standards mode rendering.

Requirements

Minimum supported client

Windows XP with SP2 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IHTMLRuleStyle2::borderCollapse

 

 

Community Additions

ADD
Show:
© 2014 Microsoft