Windows Dev Center

valign attribute | vAlign property

Sets or retrieves how text and other content are vertically aligned within the object that contains them.

Syntax

HTML<element valign="p" ... >
JavaScript

p = object.vAlign

Property values

Type: String

middle

Default. Aligns the text in the middle of the object.

baseline

Aligns the base line of the first line of text with the base lines in adjacent objects.

bottom

Aligns the text at the bottom of the object.

top

Aligns the text at the top of the object.

See also

col
colGroup
tBody
td
tFoot
th
tHead
tr
verticalAlign

 

 

Build date: 10/15/2012

Show:
© 2015 Microsoft