1
1
12332112020-04-27 14:26:06
css
1233211, 2020-04-27 14:26:06

How to properly arrange blocks 2 in a row?

How to properly arrange blocks 2 in a row? So that neighboring blocks are the same size (that is, if one block has a lot of content, and the neighboring one has little, then the height of both blocks would be equal to the one with more content)?

5ea6c0b5d2db4792788591.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
londhor, 2020-04-27
@londhor

Use css grid.
If you don’t know how, find any online grid designer.
Grids will become a browser support issue, this needs to be taken into account.

A
Alexander, 2020-04-27
@Seasle

.container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question