E
E
Evirel2022-02-25 08:29:42
Flexbox
Evirel, 2022-02-25 08:29:42

How to align a gallery to the middle without shifting due to padding?

Good afternoon. Tell me, please, how can I align this gallery in the center exactly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DanielTonne, 2022-02-25
@DanielTonne

.gallery__items {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.gallery__item {
    width: 50%;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question