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

August 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.

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.