Latest web development tutorials

HTML td charoff property

HTML td tag Reference Manual HTML <td> tag

Examples

. "" Contents "Savings" data unit and two characters to the right position of the character alignment:

<table border="1">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td align="char" char="." charoff="2">$100.00</td>
</tr>
<tr>
<td>February</td>
<td align="char" char="." charoff="2">$10.00</td>
</tr>
</table>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Almost all of the major browsers do not support charoff property.


Definition and Usage

HTML5 does not support the <td> charoff property.

charoff property setting content with respect to the alignment of the offset specified by the char attribute characters.

Only when the align attribute set to "char" char property and set to use charoff property.


grammar

<td charoff="number">

Property Value

描述
number 规定对齐方式。
正数规定向字符的右边对齐。
负数规定向字符的左边对齐。


HTML td tag Reference Manual HTML <td> tag