I have a string and I need it not to break two specific words in different lines. Example:
"Ask for it it when contracting until 2016/09/30 with T-2 Rate"
When I resize window and make it smaller there is a moment that it outputs:
"Ask for it it when contracting until 2016/09/30 with T-2 \n
Rate"
I would like T-2 + Rate
to be always together. How to do it?
Just use <span style="white-space: nowrap">
for nonbreaking parts, as MDN states.
Ask for it it when contracting until 2016/09/30 with <span style="white-space: nowrap">T-2 Rate</span>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With