Export (0) Print
Expand All
top
Expand Minimize

border-spacing

Sets the spacing that appears between cells in a table.

Syntax

{ border-spacing: sWidth }

Possible values

sWidth

Variant that specifies or receives one of the following values:

width

Floating-point number, followed by an absolute units designator (cm, mm, in, pt, or pc) or a relative units designator (em, ex, or px).

For more information about valid width values, see Length units reference.

This property has a default value of medium. It is not inherited.

Examples

The following example uses the border-spacing property to specify the border spacing. This example uses a call to an embedded (global) style sheet to change the border spacing to 4 pixels:

<style>
    td { border-spacing: 4px; }
</style>

Standards information

This property is defined in Cascading Style Sheets (CSS), Level 1 (CSS1) Ee371185.xtlink_newWindow(en-us,Expression.40).png.

Applies to

A, ABBR, ACRONYM, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, CUSTOM, DD, DEFAULTS, DEL, DFN, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, HN, HR, I, IFRAME, IMG, INPUT TYPE=BUTTON, INPUT TYPE=CHECKBOX, INPUT TYPE=FILE, INPUT TYPE=IMAGE, INPUT TYPE=PASSWORD, INPUT TYPE=RADIO, INPUT TYPE=RESET, INPUT TYPE=SUBMIT, INPUT TYPE=TEXT, INS, LI, OBJECT, OL, P, Q, S, SPAN, SUB, TABLE, TD, TH, TT, U, UL, VAR, XMP

See also

Concepts

border

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.

Community Additions

ADD
Show:
© 2015 Microsoft