0

How can I display images like this page?http://www.yunspace.com.cn/event/ no matter the height of the images, images fit tight with each other

Thanks!

Ziyu Li
  • 9
  • 1

2 Answers2

0

You can use Masonry. That's what they are using. Masonry is not the only option though: Amazing jQuery Plugins to design Pinterest like Dynamic Grid Layout

Other Resources

http://qnimate.com/creating-cascading-grid-layouts-using-masonry/

http://masonry.desandro.com/

Is it possible to create a pinterest-like layout with Bootstrap only?

Community
  • 1
  • 1
HandyDan
  • 415
  • 2
  • 8
-1

Most of there is using the absolute position to implement this, which is the most compatible way. You just need to calculate the left and top position of your each pin element.

You can refer to this open source plugin here: bootstrap-waterfall

Liber
  • 360
  • 2
  • 12