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)enter image description here.

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


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -