javascript - Text handling and grouping -
the main idea have string, no defined length (dynamic), , need group multiple columns (like in image example, ignore image part).
so, can see has precise. main idea have split string intro array of words, append each word container , check if text container fits parent container (that fixed). although idea might work, seems overkill, so, have better idea on how handle this? cannot use css property makes this, has done strictly js, because have further group text images in columns.
just clear, don't have 3 columns, dynamic, can have 1 4 columns.
if don't need support ie < 10, simpler: http://www.w3schools.com/css/css3_multiple_columns.asp