D
D
Dmitry2021-08-22 11:45:03
Layout
Dmitry, 2021-08-22 11:45:03

How to place elements like in the picture?

It is necessary to place pictures on the page, exactly with the img tag, without using obect-fit:cover;
See illustration. I feel that the solution is on the surface, but I'm in a stupor. Help me please.
61220e8679137323272738.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2021-08-22
@se_demon

This is called masonry layout, there is a detailed article on Harb , there are various solutions in the article.
There is a ready solution .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question