Click to return to the DHTML, HTML     
text-indent Attribute | t...     text-transform Attribute ...     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

text-justify Attribute | textJustify Property


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

Syntax

HTML { text-justify: sAlign }
Scripting object.style.textJustify [ = sAlign ]

Possible Values

sAlign String that specifies one of the following values:
inter-word Aligns text by increasing spacing 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.
newspaper Increases or decreases spacing between letters and between words. It is the most sophisticated form of justification for Latin alphabets.
distribute Handles spacing much like the newspaper value. This form of justification is optimized for East Asian documents, particularly Thai.
distribute-all-lines Justifies lines 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.
inter-ideograph Provides full justification for ideographic text. It increases or decreases both inter-ideograph and inter-word spacing.
auto Allows the browser user agent to determine which justification algorithm to apply.

The property is read/write with a default value of auto; the proposed cascading style sheets (CSS) extension attribute is not inherited.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see Dynamic Properties.

Remarks

For this property to affect text layout, the text-align property must be set to justify.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
ADDRESS, BLOCKQUOTE, BODY, CENTER, DD, DIR, DIV, DL, DT, FIELDSET, FORM, Hn, HR, LEGEND, LI, LISTING, MARQUEE, MENU, OL, P, PLAINTEXT, PRE, TABLE, TD, TH, TR, UL, XMP


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.