Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #318200

    Hi,

    I wonder if you can help me.

    I would like tu set my masonry galleries with the large gap enabled, but I find it to be too large (and 1px is too small).

    Would you please give me the css code to set the gap to, say, 5px for example?

    Thank you

    br
    tiago

    • This topic was modified 10 years, 7 months ago by etiagomail.
    #318207

    Hey etiagomail!

    Please choose to display 1px gap and then add following code to Quick CSS in Enfold theme options under General Styling tab

    .av-masonry-entry { margin-right: 5px; }

    Regards,
    Yigit

    #318339

    Hi Yigit,

    Thank you for your help.

    Unfortunately, the code you sent is not enough to solve this issue. Now, images do have a 5px gap on their right, but I need the gallery to display a 5 px gap on their right, left, bottom and top.

    More importantly, applying your code, leaves a huge white gap on the right of the gallery, as images are nor resized to reflect this new gap (I am guessing this one)

    Please help. Thank you.

    br
    tiago

    #318491

    Hi!

    You can try to apply an inset box shadow on the masonry items to act as a gap. Something like this:

    .av-fixed-size .av-masonry-image-container, .av-fixed-size .av-masonry-outerimage-container {
        -webkit-box-shadow:inset 0px 0px 0px 5px #e7e7e7;
        -moz-box-shadow:inset 0px 0px 0px 5px #e7e7e7;
        box-shadow:inset 0px 0px 0px 5px #e7e7e7;
    }

    Change the shadow color in accordance to the background of the masonry container.

    Cheers!
    Ismael

    #319466

    Hi Ismael,

    Thank you for your help.

    Unfortunately, I cannot see any results. At least, without further help, I cannot make it work.

    Any other ideas?

    Thanks
    br
    Tiago

    #319636

    Hi!

    Please post the actual page with the masonry gallery and your temporary login details. Set it as a private reply. We’ll add the css snippet.

    Regards,
    Ismael

    #332239

    Hi Ismael,

    My apologies for the late reply.

    I´ll be leaving things as they are, for now. In case I need it, I´ll get back to you again.

    You may close this topic, if you wish.

    Thank you.

    br
    tiago

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Masonry Gallery Gap size’ is closed to new replies.