C
C
Cheizer2020-02-27 17:06:55
css
Cheizer, 2020-02-27 17:06:55

How to make a grid with rubber blocks on FlexBOX?

Friends, how to make a grid with rubber blocks, so that with a minimum block width of 200px, the blocks would be transferred to a new line?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-02-27
@Cheizer

1. Remove flex-basis, because it dictates to the element that it is always slightly less than a quarter of the parent's width.
2. Set the flex property to flex: 1 0 200px;( flex: [flex-grow] [flex-shrink] [flex-basis];).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question