3

I'm using this script http://benholland.me/javascript/how-to-build-a-site-that-works-like-pinterest/ to try and build a gallery for a website.

I'm rendering the "block" divs inside another div which has its position to relative (lets call it "block-holder"). The problem is that I cannot make the "block-holder" to wrap around these "block"s because they have position set to absolute. My only option is to calculate the height of the highest column with JS and transfer it to a CSS class.

Do you have any idea how to do this?

Georgi Demirev
  • 446
  • 3
  • 22
  • There's a solution here that should work nicely: http://stackoverflow.com/questions/2114757/css-equal-height-columns – isherwood Jan 21 '13 at 19:35
  • suggest you provide a demo in jsfiddle.net so problem can be seen first hand – charlietfl Jan 21 '13 at 19:39
  • I can't quite make it work on jsfiddle, but you'd get the idea - http://jsfiddle.net/2u9kP/ The dark div on the back has to be as tall as the highest column. – Georgi Demirev Jan 21 '13 at 19:53

0 Answers0