files/en-us/web/css/reference/properties/line-break/index.md
The line-break CSS property sets how to break lines of Chinese, Japanese, or Korean (CJK) text when working with punctuation and symbols.
{{InteractiveExample("CSS Demo: line-break")}}
line-break: auto;
line-break: anywhere;
line-break: normal;
line-break: loose;
<section id="default-example">
<p id="example-element">
この喫茶店は、いつでもコーヒーの香りを漂わせています。
彼女はこの喫茶店で働いて、着々と実力をつけていきました。
今では知る人ぞ知る、名人です。
</p>
</section>
#example-element {
font-family: "Yu Gothic", "YuGothic", "Meiryo", "MS ゴシック", sans-serif;
border: 2px dashed #999999;
text-align: left;
width: 240px;
font-size: 16px;
}
/* Keyword values */
line-break: auto;
line-break: loose;
line-break: normal;
line-break: strict;
line-break: anywhere;
/* Global values */
line-break: inherit;
line-break: initial;
line-break: revert;
line-break: revert-layer;
line-break: unset;
auto
loose
normal
strict
anywhere
{{cssinfo}}
{{csssyntax}}
See whether the text is wrapped before "々", "ぁ" and "。".
<div lang="ja">
<p class="wrap-box auto">
auto:
そこは湖のほとりで木々が輝いていた。
その景色に、美しいなぁと思わずつぶやいた。
</p>
<p class="wrap-box loose">
loose:
そこは湖のほとりで木々が輝いていた。
その景色に、美しいなぁと思わずつぶやいた。
</p>
<p class="wrap-box normal">
normal:
そこは湖のほとりで木々が輝いていた。
その景色に、美しいなぁと思わずつぶやいた。
</p>
<p class="wrap-box strict">
strict:
そこは湖のほとりで木々が輝いていた。
その景色に、美しいなぁと思わずつぶやいた。
</p>
<p class="wrap-box anywhere">
anywhere:
そこは湖のほとりで木々が輝いていた。
その景色に、美しいなぁと思わずつぶやいた。
</p>
</div>
.wrap-box {
width: 10em;
margin: 0.5em;
white-space: normal;
vertical-align: top;
display: inline-block;
}
.auto {
line-break: auto;
}
.loose {
line-break: loose;
}
.normal {
line-break: normal;
}
.strict {
line-break: strict;
}
.anywhere {
line-break: anywhere;
}
{{ EmbedLiveSample('Setting_text_wrapping', 200, 400) }}
{{Specifications}}
{{Compat}}