U
U
Underdoggit2019-04-23 15:00:26
Layout
Underdoggit, 2019-04-23 15:00:26

Padding between lines in flexbox?

Hello. In the flex parent - 4 flex elements (product item). How to correctly and most set the indent from below between elements (margin is inconvenient, you have to deal with nth-child setting them to zero in the last line), which comes out sideways in the adaptive when elements jump. In grids, grid-gap helped out a lot in this regard: and the problem was solved at the root. Is there a similar approach in flex?
5cbefe4732925137023943.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iBird Rose, 2019-04-23
@Underdoggit

Negative margins are not bad for this case:

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question