How do I dynamically create a collage (grid with no gaps) of images, where images have different heights?

前端 未结 2 1320
眼角桃花
眼角桃花 2021-02-15 18:41

I want to display a page of thumbnails. The thumbnails are user uploaded artwork images. Each image has a constrained width, but not a constrained height, this is to show the

2条回答
  •  梦毁少年i
    2021-02-15 19:07

    Not sure how graceful you need your CSS, but a good option none the less. You could use masonry.js to help that.

    http://css-tricks.com/seamless-responsive-photo-grid/

提交回复
热议问题