In the first snippet, you should see 4 images grouped to just the left 2 columns:
[+][+][ ]
[+][+]
and not spread across all 3 columns as I would have expected:
[+][+][+]
[+]
Worse yet, even 3 items in a 3 column layout fails! I get this in Chrome:
[+][+][ ]
[+]
instead of this (which seems obvious):
[+][+][+]
Dear God why? Is it a bug? Or is it that the height of the column is not explicitly set? Explicit height would be a poor requirement of columns as far as fluid/dynamic content is concerned (which is my case).
4 items in 3 columns (fails in Chrome and Firefox)
p{
-moz-column-count: 3;
column-count: 3;
-moz-column-gap: 0;
column-gap: 0;
-moz-column-fill: balance;
column-fill: balance;
outline:1px solid gray;
}
img{
display: inline-block;
width: 100%;
height: auto;
vertical-align: top;
padding: 4px;
box-sizing: border-box;
}
<p>
<img src="http://placehold.it/300x250">
<img src="http://placehold.it/300x300">
<img src="http://placehold.it/300x300">
<img src="http://placehold.it/300x250">
</p>
3 items in 3 columns (fails in Chrome)
p{
-moz-column-count: 3;
column-count: 3;
-moz-column-gap: 0;
column-gap: 0;
-moz-column-fill: balance;
column-fill: balance;
outline:1px solid gray;
}
img{
display: inline-block;
width: 100%;
height: auto;
vertical-align: top;
padding: 4px;
box-sizing: border-box;
}
<p>
<img src="http://placehold.it/300x300">
<img src="http://placehold.it/300x300">
<img src="http://placehold.it/300x300">
</p>