2022.1

Table Of Contents
To style all cells in a table or row at the same time via the Formatting dialog, you have to select
the table or row first; see "Selecting a table, row or cell" on the previous page. Next, to open the
Formatting dialog, choose Format > Table Cell. The settings that you make now will be
applied to all cells in the selected row or table.
For information about specific options in the formatting dialogs, see "Table Formatting dialog"
on page549 and "Table Cell Formatting dialog" on page553.
Via a style sheet
Cascading Style Sheets (CSS) offer more ways to style a table and its contents, than the
Formatting dialog does.
How to use style sheets is explained in another topic; see "Styling templates with CSS files" on
page292.
Note that to make a style rule apply to a specific table, row or cell, you have to add an ID or
class to that table, row or cell.
A style sheet contains a bunch of style rules for different elements, that are identified via a CSS
selector. This can be the element's HTML tag (without angle brackets), an attribute, its ID, or a
class.
When used as a CSS selector, the HTML tag for a table is table. For a row, it is tr and for a cell,
td. A style rule that uses one of these, however, would apply to all tables, rows, or cells. For a
rule to be more specific you need to add an ID (for a unique element) or a class (for a set of
similar elements) to the table, row or cell, and use that as the style rule's selector.
Adding an ID or class to a table, row or cell
Before you can add an ID or class to a table, row or cell, you have to select that table, row or
cell (see "Selecting a table, row or cell" on the previous page). After selecting the cell, row or
table, type the ID or class in the respective field on the Attributes pane.
In CSS, refer to the table, row or cell with #ID (where ID should be replaced with the actual ID)
or with .class (where class should be replaced with the actual class).
Page 314