Table Properties

CSS also supports a number of properties targeted especially at tables. There are quite a few table properties, but as yet the support for them is slight.

border-collapse

  • CSS2 values: collapse|separate|inherit

  • Default value: collapse

  • Element support: Table and inline table elements

  • Browser support: [IE5, IE6]

  • Style inherited: Yes

This property gives a table's border model. For more information on table models, see the W3C CSS documentation.

border-spacing

  • CSS2 values: <length><length>?|inherit

  • Default value: 0

  • Element support: Table and inline table elements

  • Browser support: [None]

  • Style inherited: Yes

Although it's not supported anywhere yet, this property is supposed to give the distance between cell borders.

column-span, row-span ...

Get Real World XML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.