How can I arrange divs with varying heights to be positioned close together, regardless of their height, and with a specific margin similar to buildings? I am aiming for a layout like the one on this website . I tried using float:left but it only floats with the last div and leaves empty spaces. Here is the code that I used: http://jsfiddle.net/D9rHB/6/