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.
![]() |
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 To | All elements |
|---|---|
| Media | visual |
| Inherited | 1 |
| Initial Value |
Standards information
- CSS 2.1, Section 5.4.6
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 |
|
Build date: 1/23/2012
Community Additions
Show:
