line-break
Widely availableSince 202097% of users
Sets strictness level for CJK line-breaking rules. Values: auto, loose, normal, strict, anywhere.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since July 2020. Widely available since January 2023.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
auto- Inherited
- Yes
Quick example
p { lang: ja; line-break: strict; }Syntax
auto | loose | normal | strict | anywhereExamples
Allow breaks at CJK punctuation
.article-cjk {
line-break: auto;
/* Breaks at punctuation, even if it means shorter lines */
}CJK text can break at different points. Use line-break to control where.
Preserve strict line breaking
.poem {
line-break: strict;
/* Follows strict line breaking rules, may cause overflow */
}For poetry or specialized layouts, use strict rules even if it causes overflow.
Common pitfalls
- Only affects CJK textline-break has no effect on English or other non-CJK scripts. It only changes how Chinese, Japanese, Korean break across lines.
- Interact with word-breakline-break and word-break both affect line breaking. Their combined effect can be unpredictable; test carefully.
line-break browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2020.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
58+
69+
11+
14+Mobile
58+Android
79+Android
11+iOS