Arranging images in a montage like fashion can be a challenging task when considering certain constraints, like the window size when using fullscreen, the right image number to fill all the available space or also the size of the images in use. With the following script you can automatically create a montage, either for a liquid container or a fixed size container (including fullscreen), with the
![Automatic Image Montage with jQuery | Codrops](https://cdn-ak-scissors.b.st-hatena.com/image/square/ec6aba19949ea65aab88c150a8e7dd7081f0d9fc/height=288;version=1;width=512/https%3A%2F%2Fcodrops-1f606.kxcdn.com%2Fcodrops%2Fwp-content%2Fuploads%2F2011%2F08%2FAutomaticImageMontage.jpg%3Fx26450)