I'm trying to figure out how to make a div expand to a certain point and then wrap to the next line after reaching 200px. Currently, both the div and span are positioned absolutely in my element structure:
<div><span></span>My text goes here</div>
Right now, the text breaks into a new line after almost every word, but I want it to only wrap after a specific width of 200px. Using white-space: nowrap
solves the issue of the text breaking too frequently, but it also prevents the text from wrapping at all.
How can I achieve the desired behavior of having the text wrap only after reaching a certain width?