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

HTML DOM td/th ch property

td/th ch property

td/th Object Reference td/th object


Definition and Usage

The ch property sets or returns the alignment character of the cell.

The content alignment of all cells in the same column depends on this character.

Syntax

Set the ch property:

tdObject.ch="

text

"

or

thObject.ch="

text

"

Return the ch property:

tdObject.ch

or

thObject.ch

Tip The property property has no default value.


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the ch property. However, no major browser implements the function of this property.


Example

Example

Align the "Savings" column using the "." character:

Runoob Tutorial(runoob.com)

    

        

        

    

    

        

        

    

    

        

        

    

    

        

        

    

Month Deposit
January $100.00
February $10.00

Note:Not all major browsers support the char property.

Try it »


td/th Object Reference td/th object