In HTML and CSS, how do I make japanese text break lines correctly?
I like to use the CSS word-break:keep-all
on my websites to stop Japanese kanji being broken in a weird way but what is the difference between word-break:keep-all
, white-space:nowrap
and overflow-wrap:break-word
when using Japanese text?
<p style="word-break:keep-all">日本語, 漢字, ご返事, 文字, お寿司, 漢字, また, 文字, 日本語, 漢字, また, 文字, グレン</p>