style.verticalAlign (Property)

The vertical alignment of the style.

Availability:

CSS level - 1
DOM level - 2
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myStyle.verticalAlign
CSS syntax:vertical-align: anAlignment
Argument list:anAlignmentAn alignment control value

The textAlign property controls the horizontal alignment, this property controls the vertical alignment.

The following values can be assigned to this property to control text alignment within the element's extent rectangle:

These keywords can be assigned to control the way the box is aligned with respect to its surrounding elements in the document content flow:

You can also define a value with measurement units or as a percentage relative to the next outermost containing parent element.

These alignment values work as you would expect and as are commonly used in the HTML document source.

See also:CAPTION.align, JSSTag.verticalAlign, style.textAlign