33.4.3 Assigning a CSS class to a table

The default CSS class for a table is the table @outputclass; failing that, the table format name. To assign a different class:

[TableClasses]
; Table format name = class to use (default is based on name)
; For XML, the class is used as the tag name by default.
TableFormatName = classname

You could also use the [TableAttributes] section to assign a different class name to one or more tables. However, that method is deprecated, and does not connect to format definitions in a table-format configuration file.

See also:

§7.7 Configuring table output formats

§31.7.4 Assigning CSS classes to table formats

Previous Topic:  33.4.2 Overriding attributes for selected tables

Next Topic:  33.4.4 Using PI markers to assign attributes to tables, rows, or cells

Parent Topic:  33.4 Specifying table attributes

Sibling Topics:

33.4.1 Specifying attributes for all tables

33.4.2 Overriding attributes for selected tables

33.4.4 Using PI markers to assign attributes to tables, rows, or cells

33.4.5 Specifying attributes for table rows

33.4.6 Specifying attributes for table cells

33.4.7 Eliminating automatically generated attributes

33.4.8 Adjusting borders, cell spacing, and cell padding

33.4.9 Determining the width of table columns

33.4.10 Deciding what to do with empty paragraphs in table cells