Text-justify property
Last updated: 2026-09-13
text-justify Text-justify property
The text-justify CSS property specifies how the browser adjusts spacing when text-align is set to justify. It controls whether justification is achieved by adjusting word spacing, character spacing, or a combination of both, and mainly affects typographic details when the justify value is in use.
| Category | |
|---|---|
| Initial Value | auto |
| Inherited | Yes |
| Applies To | |
| Animation Type | |
| CSS Version | CSS3 |
| Status | Standard |
📝 Syntax
text-justify: auto | none | inter-word | inter-character;
⚙️ Values
| Value | Type | Description |
|---|---|---|
auto | none | inter-word | inter-character | Keyword | Justification strategies |
▶ Example
Edit the code below and see the live result in the playground:
🌐 Browser Support
| Browser | |||||
|---|---|---|---|---|---|
| text-justify | ✓ v57 | ✓ v12 | ✓ v52 | ✓ v10.1 | ✓ v44 |
| Supported in all major browsers | |||||
Tip: inter-character suits languages without space-separated words, such as Chinese and Japanese, achieving justified edges by adjusting character spacing.
Warning: text-justify only takes effect when text-align is justify; under any other alignment the property is ignored.
❓ FAQ
QWhich text-justify value should be used for Chinese text in CSS?
AChinese has no spaces between words, so justified text should use text-justify: inter-character, letting the browser adjust character spacing to make both edges flush — the result is more even and natural. inter-word mainly targets space-separated languages like English.
QHow does the auto value of text-justify choose a justification strategy?
AWith auto, the browser decides which strategy to use on its own, and the choice can vary between browsers. If you need a consistent result, explicitly specify inter-word or inter-character.
QWhy does the text-justify property have no effect when I set it?
Atext-justify only applies when text-align is justify, and the element needs multiple lines for spacing adjustments to show. In addition, inter-character is currently only supported by some browsers, with Firefox handling Chinese the best.