Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML colgroup charoff attribute

HTML charoff attribute

HTML colgroup Tag Reference HTML Tag

Example

In the example below, the content of the second column in the table is aligned two characters to the right of the character ".":

 

 

 

   

   

 

 

   

   

 

 

   

   

 

Month Savings
January $100.00
February $10.00

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

**Note:** Almost all major browsers do not support the charoff attribute.


Definition and Usage

In HTML5, the charoff attribute is not supported.

The charoff attribute specifies 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

HTML tag