mozilla

Compare Revisions

border-spacing

Change Revisions

Revision 20805:

Revision 20805 by Mgjbot on

Revision 20806:

Revision 20806 by GguBgt on

Title:
border-spacing
border-spacing
Slug:
CSS/border-spacing
CSS/border-spacing
Tags:
css, "CSS Reference"
css, "CSS Reference"
Content:

Revision 20805
Revision 20806
t32      border-spacing: <length> | <length> <length&t32      border-spacing:
>gt; | inherit 
33    </p>
34    <h3 name="Values">
35      Values
36    </h3>
37    <ul>
38      <li>
39        <b>&lt;length&gt;</b>&nbsp;: A length to be used for both
> horizontal and vertical border spacing. 
40      </li>
41      <li>
42        <b>&lt;length&gt; &lt;length&gt;</b>&nbsp;: The first len
>gth gives the horizontal spacing (space between cells in adjacent 
> columns) and the second length gives the vertical spacing (space 
> between cells in adjacent rows). 
43      </li>
44    </ul>
45    <h3 name="Examples">
46      Examples
47    </h3>
48    <p>
49      {{template.CSSRefExampleLink("border-spacing")}}
50    </p>
51    <pre>
52table#space {
53  border-collapse: separate;
54  border-spacing: 10px 5px;
55}
56</pre>
57    <h3 name="Notes">
58      Notes
59    </h3>
60    <p>
61      This property applies only when {{template.Cssxref("border-
>collapse")}} is "separate". 
62    </p>
63    <p>
64      The border-spacing is also used along the outside edge of t
>he table, where the distance between the table's border and the c 
>ells in the first/last column or row is the sum of the relevant ( 
>horizontal or vertical) border-spacing and the relevant (top, rig 
>ht, bottom, or left) padding on the table. 
65    </p>
66    <h3 name="Specifications">
67      Specifications
68    </h3>
69    <ul>
70      <li>
71        <a class="external" href="http://www.w3.org/TR/CSS21/tabl
>es.html#propdef-border-spacing">CSS 2.1</a> 
72      </li>
73    </ul>
74    <h3 name="Browser_compatibility">
75      Browser compatibility
76    </h3>
77    <table class="standard-table">
78      <tbody>
79        <tr>
80          <th>
81            Browser
82          </th>
83          <th>
84            Lowest Version
85          </th>
86        </tr>
87        <tr>
88          <td>
89            Netscape
90          </td>
91          <td>
92            6
93          </td>
94        </tr>
95        <tr>
96          <td>
97            Internet Explorer
98          </td>
99          <td>
100            7
101          </td>
102        </tr>
103        <tr>
104          <td>
105            Firefox
106          </td>
107          <td>
108            1
109          </td>
110        </tr>
111        <tr>
112          <td>
113            Mozilla
114          </td>
115          <td>
116            1
117          </td>
118        </tr>
119        <tr>
120          <td>
121            Safari
122          </td>
123          <td>
124            1
125          </td>
126        </tr>
127        <tr>
128          <td>
129            Opera
130          </td>
131          <td>
132            6
133          </td>
134        </tr>
135      </tbody>
136    </table>
137    <p>
138      <br>
139    </p>
140    <h3 name="See_also">
141      See also
142    </h3>
143    <p>
144      {{template.Cssxref("border-collapse")}}

Back to History