Justified.js is a jQuery plugin to create justified image gallery, with customizable grid.
Justified photo gallery with Justified.js
Here we go with a jQuery plugin for creating an elegant justified image grid, that manages the various sizes of images. We know such solutions from the Flickr, Google+ Albums, or Google Image Search. Adjustable number of Photo, row height, and grid margin.
Just include jquery.justified.images.js and jquery.justified.images.css files in the html document. After this we have to intialize this plugin for and container, for example: