H
H
HennesyGregson2020-03-29 15:47:20
Flexbox
HennesyGregson, 2020-03-29 15:47:20

How to make the elements of two columns in a FLEX container "spread" to fit the height of the larger column?

There are 6 elements distributed in two columns. By default, they stick to each other, but it’s marginimpossible to separate them beautifully - they are divof different heights. Therefore, it is necessary that their heights are the same, the upper elements are equal to each other, and the elements in the smaller column spread over its entire height. In addition, you need to be able to place everything in one column on the adaptive.

I am attaching an image for clarity. I know that on bootstrap this could be done in a jiffy, but in the TK they ordered vanilla css / html.

How it works:
uJUeZ.png

How it works:
2VPzw.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
L1nks, 2020-03-29
@L1nks

And if for the reason-blocks class add Is this not it?
align-items: flex-start;

V
Vladimir, 2020-03-29
@HistoryART

align-items: center;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question