D
D
Dmitry2019-10-25 09:40:54
css
Dmitry, 2019-10-25 09:40:54

How to make responsive layout with flexbox?

Hello, there are two rows each with a number of columns from 1 to N. In each row, all columns are the same width. How can I make the columns rebuild from one row to two at lower resolutions and also occupy an equal width each? For example, if in one row there are 4re by 25%, then at a lower resolution 2 by 2 by 50%.
Link to CodePen
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Shohruh Shaimardonov, 2019-10-25
@joeberetta

Use flex-growto increase your blocks from 25% to 50% at the desired breakpoint

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question