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

textJustify property

Sets or retrieves the type of alignment used to justify text in the object.

CSS Text Level 3


Integer value = object.put_textJustify( v);Integer value = object.get_textJustify(* sAlign);

Property values

Type: BSTR

auto (auto)

Default. Allows the browser to determine which justification algorithm to apply.

distribute (distribute)

Handles spacing much like the newspaper value. This form of justification is optimized for documents in Asian languages, such as Thai.

distribute-all-lines (distribute-all-lines)

Justifies lines of text in the same way as the distribute value, except that it also justifies the last line of the paragraph. This form of justification is intended for ideographic text.

distribute-center-last (distribute-center-last)

Not implemented.

inter-cluster (inter-cluster)

Justifies lines of text that contain no inter-word spacing. This form of justification is optimized for documents in Asian languages.

inter-ideograph (inter-ideograph)

Justifies lines of ideographic text, and increases or decreases both inter-ideograph and inter-word spacing.

inter-word (inter-word)

Aligns text by increasing the space between words. This value's spacing behavior is the fastest way to make all lines of text equal in length. Its justification behavior does not affect the last line of the paragraph.

kashida (kashida)

Justifies lines of text by elongating characters at chosen points. This form of justification is intended for Arabic script languages. Supported starting in Internet Explorer 5.5.

newspaper (newspaper)

Increases or decreases the spacing between letters and between words. It is the most sophisticated form of justification for Latin alphabets.

String format

auto | distribute | distribute-all-lines | distribute-center-last | inter-cluster | inter-ideograph | inter-word | kashida | newspaper

CSS information

Applies ToAll elements
Initial Value

Standards information


Windows Internet Explorer 8. The IHTMLStyle2::textJustify attribute is an extension to CSS, and can be used as a synonym for text-justify in IE8 Standards mode.

For this property to affect text layout, the IHTMLRuleStyle::textAlign property must be set to justify.

The property applies to block elements.


Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]









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

Community Additions

© 2014 Microsoft. All rights reserved.