Compartilhar via


borderSpacing property

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

 

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 To table and inline-table elements
Media visual
Inherited true
Initial Value 0

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

Minimum supported server

Windows Server 2003

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IHTMLRuleStyle2::borderCollapse