Easy Tutorial
❮ Dom Obj Progress Event Img Onerror ❯

vAlign Attribute


Definition and Usage

The vAlign attribute sets or returns the vertical alignment of data within a row.

Syntax

Setting the vAlign attribute:

Returning the vAlign attribute:

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

Browser Support

All major browsers support the vAlign attribute.


Example

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


❮ Dom Obj Progress Event Img Onerror ❯