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

HTML DOM td/th chOff property

td/th chOff property

td/th Object Reference td/th object


Definition and Usage

The chOff property sets or returns the offset of the alignment character of the cell.

Syntax

Set the chOff property:

tdObject.chOff="

px

|

%

"

or

thObject.chOff="

px

|

%

"

Return the chOff property:

tdObject.chOff

or

thObject.chOff

Tip: The chOff property has no default value.

Value Description
px Defines a horizontal offset, in pixels.
% Defines a horizontal offset using a percentage.

Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the chOff property, but no major browser implements the function of this property.


Example

Example

The "Savings" column aligns two characters to the right of ".":

Runoob Tutorial(runoob.com)

    

        

        

    

    

        

        

    

    

        

        

    

    

        

        

    

Month Deposit
January $100.00
February $10.00

Note:Not all major browsers support the function of the choff property.

Try it »


td/th Object Reference td/th object