verticalAlign property

[This documentation is preliminary and is subject to change.]

Sets or retrieves the vertical alignment of the object.

CSS 2.1, Section 5.4.4

Syntax

Integer value = object.put_verticalAlign(Variant v);Integer value = object.get_verticalAlign(Variant* sAlign);

Property values

Type: VARIANT

auto (auto)

Aligns the contents of an object according to the value of the -ms-layout-flow attribute.

baseline (baseline)

Default. Aligns the contents of an object supporting VALIGN to the base line.

sub (sub)

Vertically aligns the text to subscript.

super (super)

Vertically aligns the text to superscript.

top

Vertically aligns the contents of an object supporting VALIGN to the top of the object.

middle (middle)

Vertically aligns the contents of an object supporting VALIGN to the middle of the object.

bottom (bottom)

Vertically aligns the contents of an object supporting VALIGN to the bottom of the object.

text-top (text-top)

Vertically aligns the text of an object supporting VALIGN to the top of the object.

text-bottom (text-bottom)

Vertically aligns the text of an object supporting VALIGN to the bottom of the object.

String format

baseline | sub | super | top | text-top | middle | bottom | text-bottom

CSS information

Applies ToAll elements
Mediavisual
Inheritedno
Initial Value

Standards information

Remarks

The sub and super values are supported on text. The auto value is supported on the currentStyle object. The other values are supported on objects that support VALIGN.

The auto value is identical to the baseline value when the -ms-layout-flow is horizontal. When the -ms-layout-flow is vertical-ideographic, the auto value is identical to the middle value.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

DLL

Mshtml.dll

See also

vAlign

 

 

Build date: 1/23/2012

Community Additions

Show: