Adding offset to each line
<p>I am new to javascript, so excuse my lack of actual code.</p>

<p>I have a block of text that I want to fit into a space. I want to break it into rows. I need to find where the newlines are to add a new line and some offset. Then I want to subtract the offset from the row word length (if needed) and get a new cycle until there is something to do.</p>

<p>I was actually hoping to get an answer on the splitting on newlines, or at least finding out how long a row is by pixels.</p>
