Answer the question
In order to leave comments, you need to log in
How to indent between blocks in a flex container correctly?
https://codepen.io/poylar/pen/poPdoZP Let
's take a banal example. I need padding between 1rem blocks, but there should be no padding at the edges of wrap.
On grids, I would do grid-gap, but on flexes, what is the right way?
Answer the question
In order to leave comments, you need to log in
Usually, in such cases, I always do something like this
https://codepen.io/alekcena/pen/eYWeYPy
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question