Possible Duplicate:
How to stack divs from top to bottom in CSS
When i have multiple adjacent divs with float:left, they stack like this:
_______
| 1 2 3 |
| 4 5 |
|_______|
I want a stack like this:
_______
| 1 4 |
| 2 5 |
|_3_____|
jsFiddle with the horizontal stacking
How can i achieve vertical stacking ?
@ pinouchon; for this type of layout you can use css3
column-count propertyfor this.CSS:
Check my example here for more How to stack divs from top to bottom in CSS
read this article for more http://www.quirksmode.org/css/multicolumn.html