Karl Seguin Karl Seguin - 6 months ago 52
CSS Question

How to word-break on a dash?

Given a relatively simple CSS:

div {
width: 150px;


How do I make it so that the string stays constrained to the
of 150, and simply wraps to a newline on the hyphen?


Replace your hyphens with this:


It's called a "soft" hyphen.