Question
How to break a word and keep it on the same line with CSS?
Let's say I have the following paragraph tag:
<p>10 andSomeQuiteLongWord</p>
If I use word-break: break-word
or overflow-wrap: anywhere
, the word breaks as expected but also gets to a new line, like this:
|‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾|
|10 |
|andSomeQuiteLongW|
|ord |
|_________________|
I would like to display it as such:
|‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾|
|10 andSomeQuiteLo|
|ngWord |
|_________________|
Is there a way to achieve this?
3 61
3