text-justify property
Specifies how justified text should be aligned and spaced.
This property has effect only if the value of the text-align property is set to 'justify'.
JavaScript page for this property: textJustify. You can find other example(s) there. |
Possible values:
One of the following values:
The browser determines the appropriate justification algorithm. | |||||||
Like the newspaper value, except that in East Asian languages (such as Thai) the last line is not justified. | |||||||
Like the newspaper value, except that the last line is also justified. | |||||||
Only content that does not contain any inter-word spacing (such as Asian languages) is justified. | |||||||
Justifies content with ideographic text. | |||||||
Increases the spacing between words. | |||||||
Justifies content by elongating characters. | |||||||
Spacing between letters and words are increased or decreased. |
Default: auto.
Example HTML code 1:
This example illustrates the use of the text-justify property:
|
||||
<head> <style> .lastLeft { text-justify: distribute; text-align: justify; } .lastJustify { text-justify: distribute-all-lines; text-align: justify; } </style> </head> <body> <div class="lastLeft"> The text of the first line is justified alonglonglonglonglonglonglonglonglongword. Next line is justified too alonglonglonglongword. The last line is aligned to left. </div> <br /> <div class="lastJustify"> The text of the first line is justified alonglonglonglonglonglonglonglonglongword. Next line is justified too alonglonglonglongword. The last line is justified too. </div> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
address, blockQuote, body, center, dd, dir, div, dl, dt, fieldSet, form, H1, H2, H3, H4, H5, H6, html, isIndex, legend, li, listing, marquee, menu, ol, p, pre, table, td, textArea, th, tr, ul, xmp
Related pages:
ime-mode
layout-flow
layout-grid
layout-grid-char
layout-grid-line
layout-grid-mode
layout-grid-type
ruby-align
ruby-overhang
ruby-position
text-kashida-space
unicode-bidi
layout-flow
layout-grid
layout-grid-char
layout-grid-line
layout-grid-mode
layout-grid-type
ruby-align
ruby-overhang
ruby-position
text-kashida-space
unicode-bidi
External links:
User Contributed Comments