M
M
mukzer2021-07-20 22:14:39
css
mukzer, 2021-07-20 22:14:39

How to get rid of empty spaces between pictures?

How can I get rid of empty spaces between pictures when some of them disappear?
code pen

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aricus, 2021-07-21
@Aricus

I think in this case it is better to use not grid, but flexbox. There, all the pictures will be in the same sequence, and when hidden, they will be rebuilt correctly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question