I like the layout that Facebook Timeline has with the staggered two column posts. I have tried to create the same layout with just standard div
s and floats. The floats work well when floating to one side, but not to the other. Considering there are blocks of multiple heights, how do you suggest I best tackle this layout? It would be used for a blog, and I am aware that someone has created a WordPress template on this, but is it possible to distil the layout into its simplest form? After using Chrome's Developer window on my Timeline and the WordPress template, I am struggling to find the appropriate CSS code and need help.
I'll put what I have as a jsFiddle. I've added extra blocks if you need them to make sure.
you have to have the containers on the left be floated and cleared left and the ones on the right be floated and cleared right. You can do this either with javascript or whatever your server side language you use. something quick in jquery would be like this.
(a completed fiddle.. http://jsfiddle.net/gK2Vn/ I was going for the bare bones of the question..)
I had the same question, and Mark's answer didn't work for me.
However, This method worked for me
You can see it in action in this Fiffffdle
I hope it helps you or anyone else! :)