Quote from: rthrash at Jul 06, 2007, 09:07 AM
What happens when you resize the text? PHP won’t reprocess the page. This is an application that Javascript needs to handle.
This is why it would only work if you had proportional-width or fixed-width columns. In that case, if you resized the text, you’d be resizing the text in both columns.
This is what I think would happen: you input text. Your PHP snippet counts either number of characters or number of words, then splits the string about half-way (while preserving whole words) and outputs to two separate divs representing the columns. Now, if you resize text, assuming your column widths remain equal, you’ll still have the half the output in each column. The length of the columns will grow, but the columns will still have half the content each and so will stay roughly the same length.
I really don’t think this would be a great solution. I just think it’s something that would be quicker and easier to implement in PHP than to try doing the same with javascript, if you wanted all your text in 2/3 columns on one page.