So let’s say I have 3 div’s. I want them stacked in columns, next to each other. In the first columns, the first two div’s fit. Now I want the third one to go next to the first one, since there is no room for the the third one to fit under the first two. How can this be done?


Currently, the only solid way to do this is to use CSS3’s columns. See here for a reference: http://www.css3.info/preview/multi-column-layout/
This isn’t widely supported yet (especially by IE), so you might need the jQuery plugin Columnizer to add more support:
http://dotmac.rationalmind.net/2011/03/cross-browser-multi-columns-with-jquery-and-css3/