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
  • 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?

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, 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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.