Jump to content

spacing/offset from sides

Recommended Posts

I have this code, but what I want to achieve is spacing/offset of each image, like I have it on my desktop version. Can I controll it here by some new value/command at this code? 

 

Thank u for any help in advance 🙏

 

/* Masonry one item on mobile */
@media screen and (max-width:767px) {
    .gallery-masonry-wrapper.gallery-masonry-list--ready {
    height: auto !important;
}
figure.gallery-masonry-item {
    position: relative !important;
    width: 100% !important;
    display: block !important;
    transform: unset !important;
}
.gallery-masonry-item-wrapper {
    height: auto !important;
}
.gallery-masonry .gallery-masonry-item[data-loaded] img {
    width: 100% !important;
}
.gallery-masonry {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
}

Link to comment
  • Replies 3
  • Views 342
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

18 hours ago, bamab said:

I have this code, but what I want to achieve is spacing/offset of each image, like I have it on my desktop version. Can I controll it here by some new value/command at this code? 

 

Thank u for any help in advance 🙏

 

/* Masonry one item on mobile */
@media screen and (max-width:767px) {
    .gallery-masonry-wrapper.gallery-masonry-list--ready {
    height: auto !important;
}
figure.gallery-masonry-item {
    position: relative !important;
    width: 100% !important;
    display: block !important;
    transform: unset !important;
}
.gallery-masonry-item-wrapper {
    height: auto !important;
}
.gallery-masonry .gallery-masonry-item[data-loaded] img {
    width: 100% !important;
}
.gallery-masonry {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
}

Can you share your site with the protected password so I can take a look?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
On 11/21/2022 at 5:04 AM, bamab said:

sure 👍🏻😊 its www.progressm.cz

Add some attributes to this code

figure.gallery-masonry-item {
    position: relative !important;
    width: 100% !important;
    display: block !important;
    transform: unset !important;
}

It will be

figure.gallery-masonry-item {
    position: relative !important;
    width: 100% !important;
    display: block !important;
    transform: unset !important;
    margin-bottom: 50px;
    margin-left: 20px;
    margin-right: 20px;
    width: calc(~"100% - 40px") !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.