Introduction

Please note, that we know many of these articles provide a great way for our users to overcome many usual setbacks managing their servers. However, it is imperative to clarify that these tutorials should be tested outside a production environment. 

Occasionally you need to have short blocks of text to always stay on the same line. It is easy to avoid line breaks for specific elements using the CSS white-space property:

span.nobreak {
  white-space: nowrap;
}

Additionally, you can enhance that in some occasions by hiding any text that would overflow and adding an ellipsis:

span.nobreak {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

Also, to prevent a line break for a unique string of text would be to use non-breaking spaces ( ) directly in your HTML. Here is an example using Deploy A VPS Server:

Deploy nbsp;A nbsp;VPS nbsp;Server

 

Have fun!

 

Launch a VPS server to code

or

Deploy your apps with a Miami Dedicated Server

Was this answer helpful? 0 Users Found This Useful (0 Votes)