textAlign property

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

Sets or retrieves whether the text in the object is left-aligned, right-aligned, centered, or justified.

CSS 2.1, Section 5.4.6

Syntax

Integer value = object.put_textAlign(BSTR v);Integer value = object.get_textAlign(BSTR* sAlign);

Property values

Type: BSTR

one of the values listed in Possible Values.

left (left)

Default. Text is aligned to the left.

right (right)

Text is aligned to the right.

center (center)

Text is centered.

justify (justify)

Text is justified.

String format

left | right | center | justify

CSS information

Applies ToAll elements
Mediavisual
Inherited1
Initial Value

Standards information

Remarks

The property applies to block elements. The property is inherited by all block-level objects inside a div object. This parameter receives NULL if the attribute is not set.

The justify possible value is available as of Microsoft Internet Explorer 4.0.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

DLL

Mshtml.dll

 

 

Build date: 1/23/2012

Community Additions

Show: