How to flow content like the text in a multi-column PDF, i.e. with columns and page breaks

39 views Asked by At

CSS has columns attributes that flow text in a more complicated way than left-to-right wrapping. What I want to do is to limit the column height, so that once the text would exceed that height, it flows into a new row of columns. In other words, I want to recreate the experience of reading a multi-column PDF with just HTML and CSS, and with the dynamic text flowing that occurs when you resize a browser window. In still other words, how can I flow content like it was targeting paged media?

Here's a diagram of what I mean: Diagram showing two rows of three columns each, with arrows showing the path text flows through the boxes: left-to-right with wrapping in each column, left-to-right among columns, and top-to-bottom among rows.

Is there currently any way to do that without resorting to divvying up text content into multiple block elements using Javascript?

0

There are 0 answers