Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

textAlign property

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( v);Integer value = object.get_textAlign(* 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 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.