Css Make Text No Break (Single Line, No Wrap)

Aug 20, 2018

Use white-space: nowrap

<div style="white-space: nowrap;">01 Jan 2018</div>

If you are using Bootstrap 4, you can use text-nowrap.

<div class="text-nowrap">01 Jan 2018</div>

NOTE: there is also non-standard <nobr> tag.

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.