Arrange images of different sizes neatly on the grid
2 answers
Try this, hope it helps. You just have to add a border between the images of your choice.
<div id="image-container">
<img src="http://fakeimg.pl/300/">
<img src="http://fakeimg.pl/250x100/">
...
</div>
#image-container {
line-height: 0;
-webkit-column-count: 5;
-webkit-column-gap: 0px;
-moz-column-count: 5;
-moz-column-gap: 0px;
column-count: 5;
column-gap: 0px;
}
+2
source to share