M
M
MRcracker2020-08-25 12:54:08
Layout
MRcracker, 2020-08-25 12:54:08

How to make a certain number of items in a row on flexbox?

There is a list that contains 7 cards. How to make it so that there are no more than 5 cards in a row on large screens, and on smaller ones the block is rebuilt depending on the screen size?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
WapSter, 2020-08-25
@MRcracker


The changes will take effect after 820px, at a resolution no more than 5 cards will be rendered.

K
Kirill Makarov, 2020-08-25
@kirbi1996

use the parent class row, and set the children to col-1,2,3,4,5,6,12 depending on the required width

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question