tr vAlign property
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





All major browsers support the vAlign property
Example
Example
The following example changes the vertical alignment of the data within the cell:
| 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