align
Horizontal Alignment (NISO JATS table model)
Sets the horizontal (line) alignment inside a table cell. (This attribute is based on and
intended to be converted easily to the XHMTL align attribute.)
Remarks
The @align attribute is used in two
different ways:
- It specifies the horizontal alignment for the entire cell (such as “center” or “justify”).
- It is used for aligning values in table cells on a particular character within the
cell, commonly a decimal point or an equal sign. Alignment on a particular character requires that three attributes be set in the XML document:
- The @align attribute value is set to the word “char”.
- The @char attribute value is set to the actual character to use for the aligning, for example, to align on a decimal point, the “.” character.
- The @charoff attribute value is set to the percent of the current column width to be placed to the left of the (left edge of the) alignment character, for example, “30”.
Used on these Elements:
Value | Meaning |
---|---|
center | Center align the cell contents. |
char | Align the text on the character identified with the @char attribute. |
justify | Fully justify cell contents (right and left justification). |
left | Left justify cell contents. |
right | Right justify cell contents. |
Restriction | @align is an optional attribute; there is no default. |
Example
... <table frame="box" rules="all" cellpadding="5"> <tbody> <tr valign="bottom"> <td align="left">3</td> <td align="char" char="." charoff="35%">14.4411</td> <td align="center"> <graphic id="g14" orientation="portrait" position="anchor" xlink:href="d14"/></td> ... </tr> </tbody> </table> ...