HTML colgroup charoff Attribute
HTML <colgroup> tag
Definition and Usage
The charoff 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
<colgroup charoff="number"/>
|
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 any major browsers, and should be avoided.
Example
Source |
Output |
<table border="1">
<colgroup align="char" char="." charoff="2" />
<colgroup align="char" char="," charoff="4" />
<colgroup 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
colgroup charoff attribute example
Offeset the char alignment for a column group.
HTML <colgroup> tag
 |

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