The cover of The Complete Idiot's Guide to Create a Web Page The Complete Idiot's Style Sheets Reference

| Index | Current Category: Tables |
| Previous Style: border-right-width | Next Style: border-style |


border-spacing

Sets the amount of space between border in a table where border-collapse is set to separate.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later Not supported Not supported
Possible Values:
[horizontal vertical]
The amount of horizontal and vertical space between the borders.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later Not supported Not supported

Notes:
  • If you specify only a single value, it applies to both the horizontal and vertical spacing.

Example:
<TABLE STYLE="border-collapse: separate; border-spacing: 5px 10px">
<TR>
<TD STYLE="border: thick ridge blue">Eeny</TD>
<TD STYLE="border: thick groove red">Meeny</TD>
<TD STYLE="border: thick double green">Miney</TD>
<TD STYLE="border: thick dashed magenta">Mo</TD>
</TR>
</TABLE>

| Index | Current Category: Tables |
| Previous Style: border-right-width | Next Style: border-style |