Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

24 Converting tables to HTML > 24.4 Specifying table attributes > 24.4.5 Specifying attributes for table rows


24.4.5 Specifying attributes for table rows

You can specify attributes for the <tr> element with any of the following:

Paragraph format

Table format

Attribute marker.

See also:

§24.6.5 Specifying row-group, row, and cell attributes with macros.

Paragraph format

To specify row attributes based on the paragraph format of the content of cells in the row, you can use settings such as the following:

[HTMLParaStyles]

; RowAttribute inserts the contents of [StyleRowAttribute] into the

;  start tag of the enclosing table row (ignored outside tables).

CellBody2 = RowAttribute

[StyleRowAttribute]

; doc style = attribute to insert in enclosing table row start tag,

;  used in addition to other row attributes given under [Table...]

CellBody2 = bgcolor="yellow"

These settings would assign background color yellow to every row that contains a CellBody2 paragraph, in every table. To apply the settings only to some tables, you can turn these settings on and off around specific tables; see §33.2.9.1 Overriding paragraph and character format properties.

Table format

To base row attributes on the table format:

[TableRowAttributes]

FormatA = bgcolor="yellow"

This setting assigns background color yellow to every row in every FormatA table. See §24.6.5 Specifying row-group, row, and cell attributes with macros.

You can use a macro for the assignment in [TableRowAttributes].

Attribute marker

To assign an attribute to an individual row, place a marker of type RowAttr inside the cell, where Attr is the name of the attribute. The marker content is just the attribute value, without quotes. For example, to assign a class to an individual row, place a marker of type RowClass inside any cell in the row. See §29.2.4 Using attribute markers for HTML or XML.



24 Converting tables to HTML > 24.4 Specifying table attributes > 24.4.5 Specifying attributes for table rows