CSS and HTML boxes smallest on top but not in order

gytgutyff

New Member
Right, this is slightly hard to explain but what I'm after is as follows:I have a database of posts that will go into an HTML page. Obviously all these posts will be different sizes so the boxes containing them will be different sizes too. What I'm after is a way to make these boxes all appear to fit nicely in with each other, as in the picture below for example. If the first post is a small one then it will begin a line of small boxes for example. And they won't necessarily all be the same height either. In the picture each post is numbered to show where it comes in the array of posts.See the illustration I made here:
4or1u.png
Is this possible? I'm assuming I'll need some Javascript in there probably, and JQuery is preferable.Thanks for any and all help.
 
Top