text-justify

When used with 'text-align: justify', this property decides exactly how space should be added between characters or words to fill the line.

It is documented as part of the CSS Text specification.

/* Usage Example */
p.justified {
  text-align: justify;
  /* Adds equal space between every individual character to fill the line width */
  text-justify: inter-character;
}

/* Syntax */
text-justify: auto;
text-justify: inter-character;
text-justify: inter-word;
text-justify: none;

/* Global values */
text-justify: inherit;
text-justify: initial;
text-justify: revert;
text-justify: revert-layer;
text-justify: unset;
Limited availability Since 2020 44% global usage

This feature is not Baseline because it does not work in some of the most widely-used browsers.

145+
55+
145+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC