E
E
erhovs2020-04-28 15:19:25
css
erhovs, 2020-04-28 15:19:25

How to manage padding in flex container with wrap element?

There is a flex container with padding margin-top: 100px margin-bottom: 100px. Inside the div there are 8 boxes with the flex-wrap property applied. 5ea81e7889562926270808.png.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nadim Zakirov, 2020-04-28
@zkrvndm

I usually do what I do in such cases - I assign the indent I need to the child blocks, and I simply give the parent block a negative indent to cut off everything superfluous from the edges.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question