Programming i html: Split arbitrary length series of divs into columns using HTML or CSS without CSS3 on newest questions tagged html – Stack Overflow

I want to split a series of divs vertically:

My HTML might look like this:

<div>A</div>
<div>B</div>
...
<div>G</div>

I want them to look like this

A D G
B E
C F

The number of elements is arbitrary and I would like to avoid having to add extra attributes on certain of the divs if possible, as that would increase complexity greatly.

I’ve looked at the CSS3 columns option, but is there any way to do this without CSS3? I would prefer to avoid Javascript libraries as well.

See Answers


source: http://stackoverflow.com/questions/11147263/split-arbitrary-length-series-of-divs-into-columns-using-html-or-css-without-css
Programming i html: programming-i-html



online applications demo