hyphenate-limit-chars

Sets rules for how and when a word should be hyphenated, such as the minimum word length or the minimum number of characters left at the start or end of a line.

It is documented as part of the CSS Text specification.

/* Usage Example */
article {
  /* Only hyphenate words longer than 6 chars, with 3 chars on each side */
  hyphenate-limit-chars: 6 3 3;
}

/* Syntax */
hyphenate-limit-chars: auto;

/* Global values */
hyphenate-limit-chars: inherit;
hyphenate-limit-chars: initial;
hyphenate-limit-chars: revert;
hyphenate-limit-chars: revert-layer;
hyphenate-limit-chars: unset;
Limited availability Since 2020 79% global usage

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

109+
137+
109+
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