Hi team,
Could you support me with a snippet to control the spacing / padding of the Masonry grid? I’ve set the gap currently at “large” but I would like to include more space between the images. I have found some treats but none of the snippets seemed to work for me.
Thanks in advance
S.
Hey Enfoldfanatic,
Could you post a link to where we can see the element in question please?
Best regards,
Rikard
Hi Rikard,
Please find the URL in the private content section.
Regards,
S
choose the large gap and place that css into your child-theme quick css:
(masonry-gallery – or do you mean the masonry-entries?)
#top .av-large-gap.av-fixed-size .av-masonry-entry .av-inner-masonry {
right: 50px;
bottom: 50px;
}
i try to find a solution for av-flex-size now…
I mean the masonry gallery indeed :)
#top .av-large-gap.av-flex-size .av-masonry-entry .av-inner-masonry {
position: relative;
margin-right: 20px !important;
margin-bottom: 20px !important;
}
Hi Guenni007,
That worked, thank a lot for your efforts.
Regards,
S
set up for mobile devices :
.responsive.avia_mobile #top .av-large-gap.av-fixed-size .av-masonry-entry .av-inner-masonry {
right: 20px;
bottom: 20px;
}
or if you mean for small screens – then a media-query is the means of choice instead:
f.e.:
@media screen and (max-width: 767px) {
#top .av-large-gap.av-fixed-size .av-masonry-entry .av-inner-masonry {
right: 20px;
bottom: 20px;
}
}
Hi,
Thanks for the update. Please let us know if you should need any further help on the topic, or if we can close it.
Thanks @guenni007 for helping out :-)
Best regards,
Rikard
Hi Rikard,
Feel free to close the topic.
Regards,
Sheldon