borderSpacing property

[This documentation is preliminary and is subject to change.]

Sets or retrieves the distance between the borders of adjoining cells in a table.

CSS 2.1, Section 17.6Internet 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)

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 Values and Units Reference.

String format

<length>

CSS information

Applies To All elements
Media visual
Inherited no
Initial Value

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 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 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

border-collapse

 

 

Build date: 1/23/2012