The border-spacing property (CSS Reference)
Introduction
This property can be used to specify the distance between
the borders and the cells. You have to use this property in conjunction with
the border:collapse value separated This property is currently not supported by
Netscape neither by Internet Explorer. The following example demonstrates the
usage. However as mentioned you won’t see any result.
Example
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>border-spacing
Demonstration</title>
</head>
<body>
<table border="1" style="border-collapse:
separate" bordercolor="#111111" width="500"
height="154" border-spacing:50px>
<tr>
<th
colspan="3">collapse</th>
</tr>
<tr>
<td
align="center">1</td>
<td
align="center">2</td>
<td
align="center">3</td>
</tr>
</table>
</body>
</html>
Values
|
Name:
|
Description:
|
|
length or length length
|
You can use it either with a single length value or with a
length length value. If you use only one length, then it will set both values
for the vertical and horizontal. If you define both lengths then the first
will be used for horizontal and the second for vertical. The following values
can be also used to define the length.
cm (centimeter)
em (ems)
inch (inches)
mm (millimeters)
pc (picas)
px (pixels)
pt (points)
|
|