you might want to look at this: masonry desandro com
for a Pinterest grid. Examples:
codepen io /tag /masonry
For easy integration go to Codepen or make a small HTML file, create multiple <div /> with different heights and add a new class to each div (.your-prefix-grid)
Then on your template you will only need to add 1 script and 1 class.
I haven't read the Codepen's examples and don't remember how to implement it, but it should be simple.
|