Hi, the masonry gallery is not really center aligned and it is very visible on mobile as you can see in the screenshot. How can make sure it is center aligned with equal spacing on both sides?
Hey DROR,
Please try this CSS:
@media only screen and (max-width: 479px) {
.av-masonry-entry {
left: 5% !important;
}
}
Best regards,
Rikard
Thanks! How can also align it in the desktop version?
Hi,
Please try:
@media only screen and (min-width: 768px) and (max-width: 1023px) {#top.home div#av-masonry-1 {
left: 3% !important;
}
}
@media only screen and (min-width: 1024px) and (max-width: 1439px) {#top.home div#av-masonry-1 {
left: 2% !important;
}
}
@media only screen and (min-width: 1440px) {#top.home div#av-masonry-1 {
left: 1% !important;
}
}
Best regards,
Mike
Hi, I noticed that when I added the previous code it moved the bottom masonry I have to the right. Is there a way to target only a specific masonry element on a page so any change I apply to it won’t effect other similar elements on the same page?
Hi,
Please try:
@media only screen and (max-width: 479px) {
#top.home div#av-masonry-2 {
left: 5% !important;
}
}
Best regards,
Mike
Perfect. Thanks!