--- title: border-spacing slug: Web/CSS/border-spacing tags: - Referencia_CSS translation_of: Web/CSS/border-spacing ---
{{ CSSRef() }}
The border-spacing property specifies the distance between the borders of adjacent cells (only for the separated borders model). This is equivalent to the cellspacing attribute in presentational HTML.
border-spacing: <length> | <length> <length> | inherit
table#space { border-collapse: separate; border-spacing: 10px 5px; }
This property applies only when {{ Cssxref("border-collapse") }} is "separate".
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.
Navegador | Versão mais antiga |
---|---|
Netscape | 6 |
Internet Explorer | 7 |
Firefox | 1 |
Mozilla | 1 |
Safari | 1 |
Opera | 6 |
{{ Cssxref("border-collapse") }}, {{ Cssxref("border-spacing") }}
Categorias
Interwiki Language Links
{{ languages( { "en": "en/CSS/border-spacing", "fr": "fr/CSS/border-spacing" } ) }}