css.properties

text-justify

The text-justify property specifies the justification method for text.

Formal Syntax

[ auto | none | inter-word | inter-character | ruby ] || no-compress

See specification

JavaScript Access

// Access via element.style
element.style.textJustify = 'auto';

Browser Support

standard | MDN · Spec

FeatureChromeFirefoxSafariEdge
text-justify325512
auto55
inter-character55
inter-word55
none55

Behind a Flag

Some browsers require enabling a flag or preference:

  • text-justify — chrome: #enable-experimental-web-platform-features = true (since 32) — inter-word and distribute (deprecated) values are supported, but distribute behavior is buggy.
  • text-justify — chrome_android: #enable-experimental-web-platform-features = true (since 32) — inter-word and distribute (deprecated) values are supported, but distribute behavior is buggy.
  • text-justify — edge: #enable-experimental-web-platform-features = true (since 79) — inter-word and distribute (deprecated) values are supported, but distribute behavior is buggy.
  • text-justify — oculus: #enable-experimental-web-platform-features = true (since 5.0) — inter-word and distribute (deprecated) values are supported, but distribute behavior is buggy.
  • text-justify — opera: #enable-experimental-web-platform-features = true (since 19) — inter-word and distribute (deprecated) values are supported, but distribute behavior is buggy.

Related Properties