In html - keep phone number on same line without word wrapping at the hyphen

This is an annoyance; in my web pages, the text of a phone number at the end of a line will wrap at the hyphen, and I like to keep the phone number together. How do I keep the number together on the same line including the hyphens?
epaynedsmAsked:
Who is Participating?
 
RouchieCommented:
Have you tried the CSS nowrap property around the phone number?
i.e.
<span style="white-space:nowrap">1-800-555-100</span>
0
 
SheharyaarSaahilCommented:
can i see the page(s)? or can you post the code here?
0
 
epaynedsmAuthor Commented:
It happens on any page where the phone number will not fit at the end of a line, so it wraps automatically at the hyphen.
0
 
epaynedsmAuthor Commented:
Ah... that is it, Rouchie. Thank you so much!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.