For example, I got a title:
“Lorem Ipsum for WordPress”
It will be display like this in my screen:
Lorem Ipsum for
WordPress
But I want to display like this:
Lorem Ipsum
for WordPress
Can I have any solution in CSS? I dont want to use <br>
Thank you.
If you just want to prevent a line break between two words, as in “for WordPress”, then the simplest way is to use a no−break space (U+00A0) instead of a normal space. If you do not know how to type no−break space in your authoring environment, use the
entity, as infor WordPress.Alternatively, wrap the words inside
nobrmarkup, as in<nobr>for WordPress</nobr>, or inside aspanelement to which the CSS declarationwhite-space: nowraphas been assigned.