Indicates the maximum number of successive hyphenated lines in an element. The ‘no-limit’ value means that there is no limit.
- Initial value
- Applies to
- block containers
- Computed value
- specified value
- CSS Object Model Property
- 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.
- 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.
/* Do not allow more than 2 successive hyphenated lines */ hyphenate-limit-lines: 2;
- CSS Text Level 4
- W3C Editor’s Draft
Microsoft Developer Network: [Windows Internet Explorer API reference Article]