Not word breaking after hyphen?

Soldato
Joined
27 Dec 2005
Posts
17,281
Location
Bristol
Is this possible? I've got a hyphenated word in an h1 which is word breaking after the hyphen and looks awful. Only thing I can find online is to use 8208; instead, but that displays as underscore on mobile?
 
Soldato
Joined
28 Oct 2006
Posts
12,456
Location
Sufferlandria
Use a non-breaking space  

edit: sorry, misunderstood that. Non-breaking space is not what you need.

You could add a <span> around it and a "white-space: nowrap" style. Or just add that style to the H1 tags.
 
Back
Top Bottom