| Depr. | Version |
|---|---|
| No | HTML 4 |
| IE8 | FF3.5 | SA4 | OP10 | CH2 |
|---|---|---|---|---|
| None | None | None | None | None |
Syntax
Description
It may be useful in tables
that contain financial information to align contents beyond the simple
"left", "right", and
"center" determinations. For example, you might align
numerical data to a decimal point, or some other symbol. The
char attribute allows you to define the character
against which data is aligned, but this only works if the align attribute has also been set to
"char".
Example
In this example, the second cell is
aligned with the "%" character:
<tr> <th>Account Type</th> <th align="char" char="%">Interest Rate (%)</th> </tr>
Value
This attribute takes as its value a single character that appears in the table; for example, a decimal point character.
Compatibility
| Internet Explorer | Firefox | Safari | Opera | Chrome | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 5.5 | 6.0 | 7.0 | 8.0 | 1.0 | 1.5 | 2.0 | 3.0 | 3.5 | 1.3 | 2.0 | 3.1 | 4.0 | 9.2 | 9.5 | 10.0 | 2.0 |
| None | None | None | None | None | None | None | None | None | None | None | None | None | None | None | None | None |
This attribute is poorly supported and should not be relied upon.
User-contributed notes
There are no comments yet.
Add a note
To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.