html - Prevent Multiple words in <p> from being separated -


I am building a website and ran into a problem where I do not even have words for Google I know the problem is very simple: I have & lt; P & gt; ... & lt; / P & gt; has a large number of empty space inside the phone number and it is to prevent it from dividing at the end of the line. Example:

  In urgent cases + 99 9 123 45 67 or call ...  

And I want that

 Call <99> in immediate cases + 99 9 123 45 67 or try one of these ...  

or

  Instant cases Call in + 99 9 123 45 67 or try one of these ...  

How do I get it? & lt; Br> There is no manual line break or any such option with .

Wrap the number into an element:

  calls in immediate cases & Lt; Span class = "phone" & gt; +999 123 45 67 & lt; / Span & gt; Or <...  

Add it to your CSS:

  .phone {white-space: nowrap; }  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -