Kirk Strobeck Kirk Strobeck - 2 months ago 10
HTML Question

HTML no line break at hyphens

So I have the text

e-commerce
and I don't want the line to wrap at the dash.

How would I restrict wrapping for that text line?

Answer

Use the non-breaking hyphen: ‑