There is a similar question here with no real answer: CSS Column Error - 5 columns displaying only 4 (with images)
I use column-count to display elements in columns (in this case, a set of section elements, but this happens regardless of the element used (obviously)).
The problem is that Chrome and Firefox (have not tried others) do not always take into account the specified number of columns.
If I set it to 4, sometimes it will be 4, and sometimes it will be less than 4 (no more, fortunately).
If I use Firebug (or similar) to change the height of some elements in the columns, sometimes the columns move from 3 to 4.
This is really weird and really annoying, and I hope someone knows why this is happening and hopefully how to fix it.
Here JSFiddle displays the problem: http://jsfiddle.net/NY2Zx/ you can play around with image sizes to see the change in the number of columns.
thanks
source share