JSFiddle - React, Tailwind, and code Playground
by Stephen
HTML
<div class="block-of-text" style="max-width: 550px; border: 1px solid red">
One‑two <span class="nowrap">Buckle‑my‑shoe, </span>
<span class="nowrap">Three-four </span><span class="nowrap">Shut-the-door, </span>
<span class="nowrap">Five-six </span><span class="nowrap">Pick-up-sticks, </span>
<span class="nowrap">Seven-eight </span><span class="nowrap">Lay-them-straight, </span>
<span class="nowrap">Nine‑ten </span><span class="nowrap">Do‑it‑again.</span>
</div>
<br>
<div class="block-of-text" style="max-width: 550px; border: 1px solid green">
One‑two Buckle‑my‑shoe, Three‑four Shut‑the‑door, Five‑six Pick‑up‑sticks, Seven‑eight Lay‑them‑straight, Nine‑ten Do‑it‑again.
</div>
</div>
CSS
.nowrap {
/*&white-space: nowrap;*/
}