English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The charoff attribute of <thead> sets the number of characters from the content inside the <thead> element to start alignment, and it can only be used when the char attribute is specified and the align attribute is set to "char".
Align the content inside <thead> with the two characters to the right of the "B" character:
<table style="width:100%;" border="1"> <thead align="char" char="B" charoff="2"> <tr> <th height="50">Babi Doll Manufacturer</th> <th height="50">Babi Doll Type</th> </tr> </thead> <tr> <td>Barbie Princess</td> <td>6Joint Barbie Doll</td> </tr> <tr> <td>Barbie Princess</td> <td>12Joint Barbie Doll</td> </tr> </table>Test and See ‹/›
IEFirefoxOperaChromeSafari
Almost all mainstream browsers do not support the charoff attribute.
HTML5 The charoff attribute is not supported for <thead>.
The charoff attribute sets the number of characters from the beginning of the content within the <thead> element to be aligned based on the character 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'.
<thead charoff="number">
Value | Description |
---|---|
number | Specify the alignment method. Positive numbers specify right alignment for the character. Negative numbers specify left alignment for the character. |