F
F
flowstep2018-04-03 11:05:06
css
flowstep, 2018-04-03 11:05:06

How to lay out such a tile?

It is necessary to lay out such a tile, it must be rubber, while:
1) the height and width of the photographs themselves remain unchanged
2) the same distances between the blocks must remain both horizontally and vertically. That is, the proportions of the parent block should be preserved when changing the width of the browser window.
Also, when the window reaches a certain size, the number of photos per line decreases (to 4, then to 3)... but that's another story. The question is, is it possible to achieve the desired result without resorting to JS?
5ac33421d1dbc760823970.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vadim Belkin, 2018-04-03
@BelkinVadim

Example . Do you need such a result?
1. Create a responsive grid
2. For images, add a wrapper with proportional sizing trick via vertical padding and place the image inside such a block

K
Konstantin, 2018-04-03
@whiteworking

bootstrap grid

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question