There seems to be a bug in calculation of multi column css property, present in all browsers I have checked in (latest Chrome, IE11 and Firefox). If you have 9 items in your list, and try to split it in 4 columns, the last column is always empty.
Are there any workarounds, something that will split it 3/2/2/2? Thanks in advance.
ul {
-moz-column-count: 4;
-webkit-column-count: 4;
column-count: 4;
background-color: gray;
}
li {
background-color: tomato;
}
<ul>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
<li>item</li>
</ul>
li, it will show in the last columnulheight even set its height may effect to the number of column, but it's not solve the real problem