text-justify property CSS Reference



Definition and Usage

The text-justify property specifies the justification method to use when text-align is set to "justify".

This property specifies how justified text should be aligned and spaced.

Default value:auto
Inherited:yes
Version:CSS3
JavaScript syntax: object.style.textJustify="inter-word"

Syntax

text-justify: auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|trim;

Values

ValueDescription
autoThe browser determines the justification algorithm
inter-wordIncreases/Decreases the space between words
inter-ideographJustifies content with ideographic text
inter-clusterOnly content that does not contain any inter-word spacing (such as Asian languages) is justified
distributeLike the newspaper value, except that in East Asian languages (such as Thai) the last line is not justified
kashidaJustifies content by elongating characters
trim 
noneThe justification is disabled

Examples

div {
text-align:justify;
text-justify:inter-word;
}

Relative articles

CSS3 Modal Popups