text-justify

The text-justify CSS property sets what type of justification should be applied to text when text-align: justify; is set on an element.

Initial value auto
Applies to inline-level and table-cell elements

Syntax

  
text-justify: inter-word;
  

Values

The text justification is turned off. This has the same effect as not setting text-align at all, although it is useful if you need to turn justification on and off for some reason.
The browser chooses the best type of justification for the current situation based on a balance between performance and quality, but also on what is most appropriate for the language of the text (e.g., English, CJK languages, etc.). This is the default justification used if text-justify is not set at all.
The text is justified by adding space between words (effectively varying word-spacing), which is most appropriate for languages that separate words using spaces, like English or Korean.
The text is justified by adding space between characters (effectively varying letter-spacing), which is most appropriate for languages like Japanese.
Exhibits the same behavior as inter-character; this value is kept for backwards compatibility.

Browser support

text-justifychrome32edge12firefox55ie11opera19safari

We use cookies to improve your experience. Learn more in our Privacy policy.

×