Answer the question
In order to leave comments, you need to log in
How to properly move flex items?
There is a design with cards. We need to correctly distribute them over the max-width 1170px container, two per line.
if I write flex 0 0 50% then everything is ok, but then it is not possible to make indents between them - the cards remain one per line. if you set a fixed size for the card and write justify-content: space-between\around, then the gaps are too large. Tell me, please, how to do it right? It seems like an elementary matter, but my head is already boiling
Thank you for paying attention
Answer the question
In order to leave comments, you need to log in
For parent
display: flex; flex-wrap: wrap; justify-content: space-between;
width: calc(50% - 10px);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question