I am using Blueprint CSS on a Rails app. I am making this a 4-column layout with a box around each item. If I have 4 items or 8 items, then everything is fine and I have 2 rows of products. If I have a 9th product or anything not divisible by 4, then the rows and items become disjointed and spills over to the next column. Does anyone know what the problem is?
div.four-column {
-moz-column-count: 4;
-webkit-column-count: 4;
column-count: 4;
-moz-column-width: 10em;
-webkit-column-width: 10em;
column-width: 10em;
width: 910px;
}
<ul>
<% @products.each do |product| %>
<li class="box">
<%= link_to product.name, product_path(:id) %></br>
<%= product.price %>
</li>
<% end %>
</ul>