I have a page which has a grid with 5 equal columns; each column has n boxes of different heights.
So the bottom of this grid is all chopped up, each row finishes at different heights.
<div class="row">...</div>
<div class="row">...</div>
<div class="row">...</div>
<div class="row">...</div>
<div class="row">...</div>
and CSS
.row {
display: inline;
float: left;
width:20%
}
I later want to add more boxes to these rows (AJAX) with again with
<div class="row">...</div>
<div class="row">...</div>
<div class="row">...</div>
<div class="row">...</div>
<div class="row">...</div>
The problem is that these new boxes don't just fit under each row like i was expecting but instead all align there top with the lowest row from the previous rows.
With what CSS do I bypass this problem ?