Possible duplicate:How to fold a div from top to bottom in CSS
When I have some adjacent divs with float:left , they add up like this:
float:left
_______ | 1 2 3 | | 4 5 | |_______|
I need a stack:
_______ | 1 4 | | 2 5 | |_3_____|
jsFiddle horizontal laying
How to achieve vertical styling?
@pinouchon; for this type of layout you can use css3 column-count property for this.
column-count property
CSS
div#multicolumn1 { -moz-column-count: 2; -moz-column-gap: 10px; -webkit-column-count: 2; -webkit-column-gap: 10px; column-count: 2; column-gap: 10px; }
See my example here for more. How to fold a div from top to bottom in CSS
read this article for more http://www.quirksmode.org/css/multicolumn.html
Source: https://habr.com/ru/post/896703/More articles:How to specify https protocol in routing specification using rspec? - ruby-on-railsCreating a tag cloud with solr - javaSetProgressBarIndeterminateVisibility lack of understanding - androidSolr Tag Tag Cloud - solrCSS link color not working - cssThrow an exception but keep the stack trace - c #What is the unit of the parameter value in the onMeasure (int widthMeasureSpec, int heightMeasureSpec) method of the View class? - androidWhich Java JSON libraries are good at repeating JAXB annotations? - javaFunction inside function in C - cHow to search in a BYTE array for a template? - c ++All Articles