A
A
Alexander Rybakov2019-01-25 09:03:28
HTML
Alexander Rybakov, 2019-01-25 09:03:28

What properties to set flex items?

Good afternoon!
There is a product catalog - it's flex with flex-wrap:wrap;
The food itself is inside.
The question is: what properties to set for flex items so that they have a maximum size of 350px; minimum size 250px; and while the directory itself is decreasing in width, the flex items are first reduced to the minimum width, then transferred, and there they are increased to the maximum width.
Is this possible at all?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
iBird Rose, 2019-01-25
@turkish_bambook

https://jsfiddle.net/esuyo7ct/

W
WIking-2-0, 2019-01-25
@WIking-2-0

Here is another good way on grids
https://habr.com/en/company/edison/blog/344878/

S
Sergey Goryachev, 2019-01-25
@webirus

If you know the number in the line, you can use width 100% / number of elements.
Although the Pink bird option is better for me)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question