Kirk Strobeck Kirk Strobeck - 7 months ago 51
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: ‑