The text-justify property specifies text justification options.
If you use this property, the justify value must be specified for the text-align property.
p {
text-align: justify;
text-justify: newspaper;
}
Property |
Value |
Explanation |
text-justify |
auto |
the browser determine the appropriate algorithm (default) |
newspaper |
adjusts the spaces between letters and words (for Latin alphabets) |
distribute |
adjusts the spaces between letters and words (for east Asian languages (Thai, etc)) |
distribute-all-lines |
adjusts the spaces between letters and words (all lines are adjusted) |
inter-word |
adjusts the spaces between words |
inter-cluster |
for the languages without the spaces between words (for east Asian languages) |
inter-ideograph |
adjusts the spaces between letters and words (for ideographic) |
Example