Answer the question
In order to leave comments, you need to log in
Align gallery to center?
https://goreska.github.io/nlalmaty/
I can't position the gallery block on the adaptive, on the desktop version I aligned the block with flexes, wrapped it in wrap, and aligned justify-content: center
it, setting the wrapper width to 100% and the gallery width to 90%. But on mobile - width 575 for example - the block is again pressed to the left edge. Help.
UPD, for a resolution of 575, the output was found in the form of transform -50%, the blocks are positioned in the center, but if we apply the same transform for a resolution of 768, let's say, the blocks overlap each other
Answer the question
In order to leave comments, you need to log in
If so try?
@media screen and (max-width: 575px) {
.grid-item {
left: 50% !important;
transform: translateX(-50%);
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question