English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The charoff attribute sets the number of characters from which the content inside the <tfoot> element starts to align, as specified by the char attribute. The charoff attribute can only be used when the char attribute is specified and the align attribute is set to "char".
Align the content within the <tfoot> element two characters to the right of the character ".":
<table style="width:100%;" border="1"> <tr> <th>Programming Language Books</th> <th>Price</th> </tr> <tr> <td align="right">PHP Basic Tutorial</td> <td>$30</td> </tr> <tr> <td align="left">JAVA Programming Thoughts</td> <td>$80</td> </tr> <tfoot align="char" char="." charoff="2"> <tr> <td>Total</td> <td>$110.00</td> </tr> </tfoot> </table>Test see ‹/›
IEFirefoxOperaChromeSafari
Almost all mainstream browsers do not support the charoff attribute.
HTML5 The <tfoot> charoff attribute is not supported.
The charoff attribute sets the number of characters from the character specified by the char attribute to align the content within the <tfoot> element.
The charoff attribute can only be used when the char attribute is specified and the align attribute is set to 'char'.
<tfoot charoff="number">
Value | Description |
---|---|
number | Specify the alignment method. Positive numbers specify right alignment of the character. Negative numbers specify left alignment of the character. |