I’m experimenting with CSS and the float property. I have this “website”, with a lot of divs aligned to 80px grid and float: left:

Is there a way in CSS to make it looking like this – so the elements can use empty space above them?

Without JavaScript, if it’s possible.
Thanks, Martin.
For tiling dynamic content both horizontally and vertically, the CSS options are:
float:left, as you’ve already seen, only offers limited horizontal tiling.display:inline-blockgives a different result thanfloat:left, but with no tiling.In short, even the CSS standards that aren’t fully defined yet don’t seem to support this; so it may be a long ways off. The simplest fallback option is to use a jQuery plug-in.
Besides Masonry (as @Billy Moat suggested), another couple jQuery plug-ins are Isotope and Tiles Gallery. Masonry seems to be mentioned the most often.