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-lines

Summary

Indicates the maximum number of successive hyphenated lines in an element. The ‘no-limit’ value means that there is no limit.

Overview table

Initial value
no-limit
Applies to
block containers
Inherited
Yes
Media
visual
Computed value
specified value
Animatable
No
CSS Object Model Property
hyphenateLimitLines
Percentages
N/A

Syntax

  • hyphenate-limit-lines: integer
  • hyphenate-limit-lines: no-limit

Values

no-limit
Indicates that hyphenation is not limited based on the number of consecutive hyphenated lines. In the flow above the consecutive hyphenated lines limit would be an infinitely large positive number.
integer
Indicates the maximum number of successive hyphenated lines.

For instance, if 2, then no more than 2 successive lines may end with a hyphenated word. If 0 then no lines may end with a hyphenated word. (Hyphenation is effectively disabled.)

Negative values are not allowed.

Examples

/* Do not allow more than 2 successive hyphenated lines */
hyphenate-limit-lines: 2;

Related specifications

CSS Text Level 4
W3C Editor’s Draft

See also

Related articles

Text

Related pages

Attributions