text-justify
Limited availability71% of users
Specifies how text is justified. Values: auto, inter-word, inter-character, distribute (for CJK).
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Safari yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
auto- Inherited
- Yes
Quick example
p { text-align: justify; text-justify: inter-character; }Syntax
auto | inter-character | inter-word | noneExamples
Control how justified text spaces characters
.magazine {
text-align: justify;
text-justify: inter-word;
/* Stretches spaces between words, not characters */
}Choose whether justification spreads spaces between words or characters.
Use auto for language-specific rules
p {
text-align: justify;
text-justify: auto;
/* Browser picks the best method for the language */
}Let the browser apply justified spacing rules appropriate for the language.
Common pitfalls
- Only works with text-align: justifytext-justify has no effect unless text-align: justify is set. It controls how justification happens, not whether.
- Limited browser supporttext-justify support is inconsistent across browsers. Test with your target audience's browsers.
text-justify browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage71%of people can use this29% use a browser without it.
Browsers
145+
55+
145+Mobile
145+Android
55+Android