HTML <tr> charoffProperty
Example
Align the content of the second and third lines to the position two characters to the right of the "." character:
<table border="1">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr align="char" char="." charoff="2">
<td>January</td>
<td>$100.00</td>
</tr>
<tr align="char" char="." charoff="2">
<td>February</td>
<td>$10.00</td>
</tr>
</table>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr align="char" char="." charoff="2">
<td>January</td>
<td>$100.00</td>
</tr>
<tr align="char" char="." charoff="2">
<td>February</td>
<td>$10.00</td>
</tr>
</table>
Try it Yourself »
Browser Support
![]()
![]()
![]()
![]()
![]()
Almost all mainstream browsers do not support the charoff attribute.
Definition and Usage
HTML5 does not support the <tr> charoff attribute.
The charoff attribute specifies the alignment offset of content relative to the character specified by the char attribute.
The charoff attribute can only be used when the align attribute is set to "char" and the char attribute has been set.
Syntax
<tr charoff="number">
Property value
| Value | Description |
|---|---|
| number | Specify alignment mode. Positive numbers specify right alignment of the character. Negative numbers specify left alignment of the character. |
HTML <tr> Tagother extensions