Jump to content

How to reduce space between gallery blocks?

Go to solution Solved by Web_Solutions,

Recommended Posts

Hello,

I am new to the forum, I have already found some useful custom CSS for my site but I am still struggling with unwanted spaces between gallery blocks on pages. I would appreciate a custom CSS for them, thank you very much in advance!

Pages where I have difficulties removing the space are as follows:

https://www.palmamondovics.com/harvest-time

https://www.palmamondovics.com/flora 

At the second one I am suing differently styled galleries like masonry and grid and I would like the same amount of space between galleries as it is between the images.

Thank you again!
 

gallery.PNG

Link to comment
1 hour ago, MrsMarple said:

Hello,

I am new to the forum, I have already found some useful custom CSS for my site but I am still struggling with unwanted spaces between gallery blocks on pages. I would appreciate a custom CSS for them, thank you very much in advance!

Pages where I have difficulties removing the space are as follows:

https://www.palmamondovics.com/harvest-time

https://www.palmamondovics.com/flora 

At the second one I am suing differently styled galleries like masonry and grid and I would like the same amount of space between galleries as it is between the images.

Thank you again!
 

gallery.PNG

Add these code on Custom CSS panel in Website Utilities Website Tools > Custom CSS.

.gallery-masonry {
    padding-top: 0 !important;
    padding-bottom: .8vw !important;
}
#page section:first-child .gallery-masonry {
    padding-top: 4vw !important;
}
#page section:last-child .gallery-masonry {
    padding-bottom: 4vw !important;
}

 

Screenshot_388.png

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
1 hour ago, Web_Solutions said:

Add these code on Custom CSS panel in Website Utilities Website Tools > Custom CSS.

.gallery-masonry {
    padding-top: 0 !important;
    padding-bottom: .8vw !important;
}
#page section:first-child .gallery-masonry {
    padding-top: 4vw !important;
}
#page section:last-child .gallery-masonry {
    padding-bottom: 4vw !important;
}

 

Screenshot_388.png

Thank you  very much, your code fixed the harvest time page but not the second one (/flora in url but titled plants). If you would have some other ideas I would highly appreciate it thanks a lot!

Edited by MrsMarple
to be more polite
Link to comment
  • Solution
5 hours ago, MrsMarple said:

Thank you  very much, your code fixed the harvest time page but not the second one (/flora in url but titled plants). If you would have some other ideas I would highly appreciate it thanks a lot!

Replace the previous code with the code below.

.gallery-masonry, .gallery-strips, .gallery-grid {
    padding-top: 0 !important;
    padding-bottom: .8vw !important
}

#page section:first-child {
    .gallery-masonry, .gallery-strips, .gallery-grid {
        padding-top: 4vw !important
    }
}

#page section:last-child {
    .gallery-masonry, .gallery-strips, .gallery-grid {
        padding-bottom: 4vw !important
    }
}

 

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
9 hours ago, Web_Solutions said:

Replace the previous code with the code below.

.gallery-masonry, .gallery-strips, .gallery-grid {
    padding-top: 0 !important;
    padding-bottom: .8vw !important
}

#page section:first-child {
    .gallery-masonry, .gallery-strips, .gallery-grid {
        padding-top: 4vw !important
    }
}

#page section:last-child {
    .gallery-masonry, .gallery-strips, .gallery-grid {
        padding-bottom: 4vw !important
    }
}

 

It worked!! Thank you very much

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.