This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

hyphenate-limit-chars

Summary

Specifies the minimum number of characters in a hyphenated word

Overview table

Initial value
auto
Applies to
All elements
Inherited
Yes
Media
visual
Computed value
specified value
Animatable
No
CSS Object Model Property
hyphenateLimitChars
Percentages
N/A

Syntax

  • hyphenate-limit-chars: integer
  • hyphenate-limit-chars: auto

Values

auto
Corresponds to a value of 5 2 2, indicating a 5-character word limit, 2 characters required before a hyphenation break, and 2 characters required following a hyphenation break.
integer
One to three integer values, corresponding to the word limit, the minimum number of characters required before a hyphenation break, and the minimum number of characters required following a hyphenation break, respectively.

If the third value is missing it is equal to the second.

If the second and third values are missing they are given a value of auto.

Negative values are not allowed.

Examples

/* Only hyphenate words with >= 6 characters,
   leave at least 3 characters before the hyphen and at least 2 after it */
hyphenate-limit-chars: 6 3 2;

Related specifications

CSS Text Level 4
W3C Editor’s Draft

See also

Related articles

Text

Related pages

Attributions