Answer the question
In order to leave comments, you need to log in
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
Use flex-grow
to increase your blocks from 25% to 50% at the desired breakpoint
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question