HTML <th> charoffProperty

HTML <th> Tag

Example

Align the content of the first header cell with a position two characters to the right of the "M" character:

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

Try it Yourself »

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Almost all mainstream browsers do not support the charoff attribute.


Definition and Usage

HTML5 does not support the <th> charoff attribute.

The charoff attribute sets the alignment offset of the 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

<th charoff="number">

Property value

Value Description
number Specify the alignment method.
Positive numbers specify right alignment of the character.
Negative numbers specify left alignment of the character.


HTML <th> Tagother extensions