I have a div, which consists of words with different styles applied to text segments.
I am trying to implement a layout such that if the text exceeds the width of the div, it should go over to the next line. Basically: No word break Also, the key here is to make sure that a word never breaks, if the whole word can't fit inside the div horizontally, it should move over to the next line.
We can assume that the width is atleast more than the width of the longest word.
when text exceeds width, continue in new line](http://stackoverflow.com/questions/13790170/p-when-text-exceeds-width-continue-in-new-line)
– bummi Jul 06 '15 at 07:23