I
I
Im p3l2021-06-15 14:13:45
css
Im p3l, 2021-06-15 14:13:45

How to make a grid like in the picture?

I'm trying to make a grid like in the picture, but I get a very large indent between the blocks. Please tell me how to do it like in the picture and so that there are no large indents
60c88ac2dc83c970657071.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
MikUrrey, 2021-06-15
@LoranDeMarcus

Put away
grid-template-rows: repeat(4, 1fr);

D
Dmitry Markov, 2021-06-15
@En-Tilza

In my opinion, this can be done using column-count
Parent add column-count: 2;
Blocks add break-inside: avoid-column;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question