| Depr. | Version |
|---|---|
| No | HTML 4 |
| IE8 | FF2 | SA4 | OP10 | CH2 |
|---|---|---|---|---|
| None | None | None | None | None |
Syntax
Description
The
char attribute allows you to define the character
against which data in the th or td
elements within this table row are aligned, but this is only works if the
align attribute has also been set to
"char".
Example
In the following example, the rows
are aligned to the "%" character:
<table summary="Interest Rates" width="400" border="1">
<caption>Interest Rates</caption>
<thead align="char">
<tr>
<th>Account Type</th>
<th>Interest Rate (%)</th>
</tr>
</thead>
<tbody>
<tr align="char" char="%">
<td>Smart</td>
<td>From 2%</td>
</tr>
<tr align="char" char="%">
<td>Young Saver</td>
<td>From 1.6%</td>
</tr>
</tbody>
</table>
Value
This attribute takes as its value a single character that appears in the table, such as 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 | 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 |
This element 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.