blob: 36747dc64d5dcd21259bc311e7b0ad298becb905 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
---
title: border-spacing
slug: Web/CSS/border-spacing
tags:
- Referencia_CSS
translation_of: Web/CSS/border-spacing
---
<p>{{ CSSRef() }}</p>
<h3 id="Resumo" name="Resumo">Resumo</h3>
<p>The border-spacing property specifies the distance between the borders of adjacent cells (only for the <a href="pt/CSS/border-collapse">separated borders model</a>). This is equivalent to the cellspacing attribute in presentational HTML.</p>
<ul>
<li>Valor inicial: 0</li>
<li>Aplica-se a: tabelas e tabelas em linha</li>
<li>Herdado: sim</li>
<li>Mídia: <a href="pt/CSS/Media/Visual">Visual</a></li>
<li>Valor computado: dois comprimentos absolutos</li>
</ul>
<h3 id="Sintaxe" name="Sintaxe">Sintaxe</h3>
<p>border-spacing: <length> | <length> <length> | inherit</p>
<h3 id="Valores" name="Valores">Valores</h3>
<ul>
<li><strong><length></strong> : A length to be used for both horizontal and vertical border spacing.</li>
<li><strong><length> <length></strong> : The first length gives the horizontal spacing (space between cells in adjacent columns) and the second length gives the vertical spacing (space between cells in adjacent rows).</li>
</ul>
<h3 id="Exemplos" name="Exemplos">Exemplos</h3>
<p><a href="/samples/cssref/border-spacing.html">View Live Examples</a></p>
<pre>table#space {
border-collapse: separate;
border-spacing: 10px 5px;
}
</pre>
<h3 id="Notas" name="Notas">Notas</h3>
<p>This property applies only when {{ Cssxref("border-collapse") }} is "separate".</p>
<p>The border-spacing is also used along the outside edge of the table, where the distance between the table's border and the cells in the first/last column or row is the sum of the relevant (horizontal or vertical) border-spacing and the relevant (top, right, bottom, or left) padding on the table.</p>
<h3 id="Especifica.C3.A7.C3.B5es" name="Especifica.C3.A7.C3.B5es">Especificações</h3>
<ul>
<li><a class="external" href="http://www.w3.org/TR/CSS21/tables.html#propdef-border-spacing">CSS 2.1</a></li>
</ul>
<h3 id="Compatibilidade_com_navegadores" name="Compatibilidade_com_navegadores">Compatibilidade com navegadores</h3>
<table class="standard-table">
<tbody>
<tr>
<th>Navegador</th>
<th>Versão mais antiga</th>
</tr>
<tr>
<td>Netscape</td>
<td>6</td>
</tr>
<tr>
<td>Internet Explorer</td>
<td>7</td>
</tr>
<tr>
<td>Firefox</td>
<td>1</td>
</tr>
<tr>
<td>Mozilla</td>
<td>1</td>
</tr>
<tr>
<td>Safari</td>
<td>1</td>
</tr>
<tr>
<td>Opera</td>
<td>6</td>
</tr>
</tbody>
</table>
<p> </p>
<h3 id="Veja_tamb.C3.A9m" name="Veja_tamb.C3.A9m">Veja também</h3>
<p>{{ Cssxref("border-collapse") }}, {{ Cssxref("border-spacing") }}</p>
<p><span class="comment">Categorias</span></p>
<p><span class="comment">Interwiki Language Links</span></p>
<p>{{ languages( { "en": "en/CSS/border-spacing", "fr": "fr/CSS/border-spacing" } ) }}</p>
|