HTML col charoff Attribute
HTML <col> tag
Definition and Usage
The char attribute specifies alignment offset of the
content in the table cell around a single character.
Use this attribute together with the align attribute set to "char"
and the char attribute.
This attribute is not well supported, and should be avoided.
Syntax
Syntax Example
Attribute Values
Value |
Description |
positive_number |
Specifies alignment to the right of the specified character
(3 = 3 characters to the right). |
negative_number |
Specifies alignment to the left of the specified character
(-3 = 3 characters to the left). |
Browser Support

The attribute is not supported by major browsers.
Note: Because of the poor support for this attribute, you should avoid using it.
Example
Source |
Output |
<table border="1">
<col align="char" char="." charoff="2" />
<col align="char" char="," charoff="4" />
<col align="char" char=":" charoff="-3" />
<tr>
<th colspan="3">This table contains
three table data cells</th>
</tr>
<tr>
<td>10.58</td>
<td>211,11</td>
<td>15:32</td>
</tr>
</table>
|
This table contains
three table data cells |
10.58 |
211,11 |
15:32 |
|
Try-It-Yourself Demos
col charoff
attribute example
Offeset the char alignment for a column.
HTML <col> tag
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|