V
V
Vsevolod2014-05-22 15:36:31
PHP
Vsevolod, 2014-05-22 15:36:31

How to create an image gallery using PHP/JS?

I need to create an image gallery page. Below are examples of what it should look like.
Google image
5f7d65d5e2b04b80948b4861548f8c3a.PNG
search Yandex image search
c24806e517824acca16c2e648a3ffac5.PNG
Vkontakte, post on the wall
a25d3368a2d84e02ae5c56afef77ba34.PNG
What are the ways to implement the task?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Anton Chekhov, 2014-05-22
@chernikov_v

Flexbox: here and here .

I
Ivan, 2014-05-22
@0neS

In Yandex.images, for example, for all blocks, the width is calculated and fixed, so that the height is the same.
In general, the question is not correct.

V
Vsevolod, 2014-05-23
@chernikov_v

Thank you, let it be Flexbox.

D
Denis Kazachenkov, 2014-05-22
@BASSON_XVI

Actually Google helps!
And here is an article on the adaptive gallery on Habré!
habrahabr.ru/post/159087
or here's designandcode.ru/blog/google-grid-gallery

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question