There are many ways to achieve this:
spantag with CSS rulewhite-space: nowrapis a bit verbose but also reliable way:
<div class="">
<span>God’s lioness,</span> <span>How one we grow,</span> <span>Pivot of heels and knees!—The furrow</span>
</div>span { white-space: nowrap; }<nobr>markup can also work:
<div class="">
<nobr>God’s lioness,</nobr> <nobr>How one we grow,</nobr> <nobr>Pivot of heels and knees!—The furrow</nobr>
</div>- For Chinese characters,
word-break: keep-allwill treat CJK as non-CJK, which means the text will only break at spaces or punctuations. It works like a charm for Chinese poems.
source: Where Lines Break is Complicated. Here’s all the Related CSS and HTML.