I'd like to keep a line of text together such that either the whole line drops down a line or none at all
Acceptable
How do I wrap this line of text - asked by Peter 2 days ago
Acceptable
How do I wrap this line of text
- asked by Peter 2 days ago
Not acceptable
How do I wrap this line of text - asked by Peter
2 days ago
Is this achievable in CSS?
You could also put non-breaking spaces ( ) in lieu of the spaces so that they're forced to stay together.
How do I wrap this line of text
- asked by Peter 2 days ago
Source: Stackoverflow.com