<p>Given a relatively simple CSS:</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>div {
  width: 150px;
}</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div&gt;
  12333-2333-233-23339392-332332323
&lt;/div&gt;</code></pre>
</div>
</div>
</p>

<blockquote>
  <p>How do I make it so that the string stays constrained to the <code>width</code>
  of <strong>150</strong>, and wraps to a new line on the <em>hyphen</em>?</p>
</blockquote>

Replace your hyphens with this:
```
```
&shy;
```
```
It's called a "soft" hyphen.
```
```
div {
  width: 150px;
}
```
```
```
```
<div>
  12333&shy;2333&shy;233&shy;23339392&shy;332332323
</div>
```
```