Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

border-collapse

Resumo

The border-collapse property is used to make the border collapse. This has a big influence on the look and style of the table cells. The rendering of table borders is divided into two categories in CSS2 - "collapsed" and "separated". This property specifies which border rendering mode to use. In the collapsed border model, adjacent table cells share borders. In the separated model, adjacent cells each have their own distinct borders (the distance between them given by the 'border-spacing' property.)

  • Valor inicial: separate
  • Herdado: sim
  • Mídia: Visual

Sintaxe

border-collapse: value

Valores

  • inherit : Explicitly sets the value of this property to that of the parent.
  • separate : Use the "separated borders" rendering model
  • collapse : Use the "collapsed borders" rendering model

Exemplos

View Live Examples

<table border="1" style="border-collapse: collapse" bordercolor="#111111" width="500">
<table border="1" style="border-collapse: separate" bordercolor="#111111" width="500">

Notas

In the "collapsed border" rendering model, the 'border-style' value of "inset" behaves like "groove", and "outset" behaves like "ridge." CSS2 specifies that the initial value for this property is "collapse", but CSS2.1 and Mozilla/Opera all state or behave such that the initial value is "separate."

Especificações

Compatibilidade com navegadores

Navegador Versão mais antiga
Internet Explorer 5.5
Netscape 7
Opera 5


Veja também

border-collapse, border-spacing

Categorias

Interwiki Language Links

Etiquetas do documento e colaboradores

Etiquetas: 
 Colaboradores para esta página: teoli, Verruckt
 Última atualização por: teoli,