E
E
Elena2021-02-12 19:48:25
Flexbox
Elena, 2021-02-12 19:48:25

How to remove last element padding on flex?

How was the indentation removed before, with adaptive layout, from flex?
These are 6026b1288dd80040988784.png
easy to do on grids, of course, but how to do it on flexes

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Litvinenko, 2021-02-12
@Elena0394

on flex, if you give the elements a width of 30% and justify-content: space-between the indents will also be automatic.
But when it was done on floats, then through the nth-child(3n+3) pseudo-class, the right margin was reset to zero in this case for every third

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question