Not long ago I needed a fluid grid ala pinterest but none of the jquery plugins that I found was simple enough or fast enough. So I wrote my own.
I took the idea from this Quora question What technology is used to generate pinterest.com’s absolute div stacking layout?
My script basically does what’s described in the first answer. You can check it out on the github page and repository
Feel free to comment and use or change the code.