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

HTML DOM tr vAlign property

tr vAlign property

tr Object Reference tr object


Definition and Usage

The vAlign property sets or returns the vertical alignment of data in a row.

Syntax

Set the vAlign property:

trObject.vAlign="baseline|bottom|middle|top"

Return the vAlign property:

trObject.vAlign

Value Description
baseline Align with the baseline.
bottom Align the content to the bottom.
middle Align the content to the bottom.
top Align the content to the top.

Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the vAlign property


Example

Example

The following example changes the vertical alignment of the data within the cell:

Runoob Tutorial(runoob.com)

    

        

        

        

    

    

        

        

        

First name Next name Text
Peter Griffin Hello, my name is Perter, I need a long text to demonstrate, I need a long text to demonstrate.

Try it »


tr Object Reference tr object