To avoid wrapping a specific part of text, you can use
<span style="white-space: nowrap;">
.
If you have justified text (text-align: justify
), and want to prevent justification for certain words without affecting the rest, is there a way to do it?
For example, instead of having equal spacing between words like this:
Lorem ipsum dolor sit amet, consectetur |
adipiscing elit. Phasellus et |
ullamcorperenim sed velit fermentum. |
You want to keep "adipiscing elit" together only like this:
Lorem ipsum dolor sit amet, consectetur |
adipiscing elit. Phasellus et |
ullamcorperenim sed velit fermentum. |
Is there a way to achieve this formatting?