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

HTML DOM tr chOff property

tr chOff property

tr Object Reference tr object


Definition and Usage

The chOff property sets or returns the offset of the alignment character of the cells in a row.

The chOff property sets the number of content characters via the attribute/ch property character.

Syntax

Set the chOff property:

trObject.chOff="

px

|

%

"

Return the chOff property:

trObject.chOff

Tip: The chOff property has no default value.

Value Description
px Defines a horizontal pixel offset
% Defines the horizontal offset as a percentage of the object width.

Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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


Example

Example

The "Savings" column aligns two characters from the right:

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 »


tr Object Reference tr object