Cascading Style Sheets/Tables

Displaying Tables

edit

W3C Specification CSS2.1

The display property is extended with the following values by CSS2.1:

  • table
  • inline-table
  • table-row-group
  • table-header-group
  • table-footer-group
  • table-row
  • table-column-group
  • table-column
  • table-cell
  • table-caption

Adjacent borders of cells can be made one border thin using the border-collapse property, like "border-collapse:collapse;".

The spacing between the borders of cells can be set using the border-spacing property, since CSS2. The setting of the property has no effect if borders have been made look one border thin using "border-collapse:collapse;".