D
D
Daniil Rudnev2020-06-29 22:43:29
css
Daniil Rudnev, 2020-06-29 22:43:29

How to lay out a block in which other blocks in a row occupy 100% of its width?

Is there an option to make one without limiting the height of the row?

block
HkI24cIK994.jpg


All images of different widths, but at the same time completely occupy the block

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Antony Bark, 2020-07-09
@10435780

Create a container, the rows of blocks included in it are equal to 100% of the width of the container,
the width of each block, or hardcore with percentages, or use js to calculate.
The height is the same.
In order not to suffer from calculations, use flex: auto, -shrink, -grow; align stretch
background images through cover and contain
if you need a code, tell me, I'll throw it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question