Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #902000

    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?

    #902557

    Hey DROR,

    Please try this CSS:

    @media only screen and (max-width: 479px) {
    .av-masonry-entry {
      left: 5% !important;
    }
    }

    Best regards,
    Rikard

    #902846

    Thanks! How can also align it in the desktop version?

    #902856

    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

    #902858

    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?

    #902860

    Hi,
    Please try:

    @media only screen and (max-width: 479px) {
    #top.home div#av-masonry-2 {
      left: 5% !important;
    }
    }

    Best regards,
    Mike

    #902863

    Perfect. Thanks!

    #902866

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘How to center align the masonry gallery’ is closed to new replies.