CSS Attributes Index Text Attributes
Determines the type of alignment used to justify text in the object.
CSS |
{ text-justify : 'inter-word' | 'newspaper' | 'distribute' | 'distribute-all-lines' | 'inter-ideograph' | 'auto' } |
Script |
object.style.textJustify = sAlign ] |
inter-word |
Aligns text by increasing spacing between words. This spacing behavior is the fastest. This 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 justification behavior. This form of justification is optimized for East Asian documents, particularly Thai. |
distribute-all-lines |
Justifies lines in the same way as distribute, except that it justifies the last line of the paragraph too. This justification behavior 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 |
Allow 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 stylesheet ( CSS ) extension attribute is not inherited.
For this property to affect text layout, the text-align property must be set to justify.
ADDRESS, BLOCKQUOTE, BODY, CENTER, DD, DIR, DIV, DL, DT, FIELDSET, FORM, Hn, HTMLAREA, HR, LEGEND, LI, LISTING, MARQUEE, MENU, OL, P, PLAINTEXT, PRE, TABLE, TD, TH, TR, UL, XMP