align

Alignment

Sets the horizontal (line) alignment for the content of the associated element

Remarks

For tables, alignment on a particular character requires that three attributes be set in the document:

  1. The @align attribute value is set to the word “char”;
  2. The @char attribute value is set to the actual character to use for the aligning, for example, a decimal point, “.”; and
  3. The @charoff attribute value is set to the percent of the current column width to the left of the (left edge of the) alignment character, for example, “30”.

Attribute Values

In Elements

<col>, <colgroup>, <tbody>, <td>, <tfoot>, <th>, <thead>, <tr>
Value Meaning
center The text will be centered within the Table Entry.
char The text will be aligned relative to a specified character; the character to be used is the value of the @char attribute.
justify The text will be aligned quad left and right.
left The text will be aligned flush left.
right The text will be aligned flush right.
Restriction: This attribute may be specified if the element is used.