| text-justify | NN n/a IE 5 CSS n/a |
 |
|
| Inherited: Yes |
Controls detailed character distribution techniques for any
block-level element that has its text-align CSS
attribute set to justify. This attribute is
designed primarily for Asian or other non-Latin languages.
|
| |
| CSS Syntax |
| |
text-justify: justificationType
|
| |
| Value |
One of the constants shown in the following table.
| Value | Meaning |
| auto | Lets browser choose best type |
| distribute | Similar to newspaper but optimized for Asian
languages
|
| distribute-all-lines | Justifies lines, including the last line, leading to potentially very
wide word spacing
|
| distribute-center-last | Justifies lines but centers the last line (not implemented) |
| inter-cluster | Justifies lines lacking word spacing |
| inter-ideograph | Justifies lines consisting of ideographs |
| inter-word | Justifies lines by distributing padded space between words (common
for Latin languages)
|
| kashida | Justify Arabic script through elongated strokes (IE 5.5 or later
required)
|
| newspaper | Justify lines by distributing padded space between words and between
characters
|
|
| |
| Initial Value |
0
|
| |
| Example |
| |
div#col1 {text-align:justify; text-justify:newspaper}
|
| |
| Applies To |
Block-level elements.
|
| |
| Object Model Reference |
| |
[window.]document.getElementById("elementID").style.textJustify
|