Open this example in the interactive library
Source code
<style>
.demo {
white-space: nowrap;
}
</style>
<div class="demo">Keep text on one line</div>
Keep text on one line with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
.demo {
white-space: nowrap;
}
</style>
<div class="demo">Keep text on one line</div>