A
A
Andrew Johnson2021-02-16 12:48:03
css
Andrew Johnson, 2021-02-16 12:48:03

How to make flex items shrink even with flwx-wrap: wrap?

I have a layout with 6 flex items in 2 rows with 3 items each. Logically, flex-wrap:wrap is used.

602b96f6c4d4a267679558.png

But when adaptive, the elements should shrink! and with flex-wrap:wrap they will of course wrap to another line.

602b96e78d962241067657.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fedor, 2021-02-16
@ludovikxlv

For elements, set the property: A couple of useful links on Flex-box: What is Flexbox? Description of all css properties, basically... Good Flexbox video guide And remove the sass tag. He's redundant here. flex: 0 1 33.333%

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question