--- title: border-spacing slug: Web/CSS/border-spacing tags: - Referencia_CSS translation_of: Web/CSS/border-spacing ---

{{ CSSRef() }}

Resumo

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.

Sintaxe

border-spacing: <length> | <length> <length> | inherit

Valores

Exemplos

View Live Examples

table#space {
  border-collapse: separate;
  border-spacing: 10px 5px;
}

Notas

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.

Especificações

Compatibilidade com navegadores

Navegador Versão mais antiga
Netscape 6
Internet Explorer 7
Firefox 1
Mozilla 1
Safari 1
Opera 6

 

Veja também

{{ Cssxref("border-collapse") }}, {{ Cssxref("border-spacing") }}

Categorias

Interwiki Language Links

{{ languages( { "en": "en/CSS/border-spacing", "fr": "fr/CSS/border-spacing" } ) }}