Jump to content

Help adding Padding to side of Gallery Grid page

Go to solution Solved by tuanphan,

Recommended Posts

  • Solution
6 hours ago, Firstprime said:

Site URL: https://glennoctor.com/

Hi,

I have a page with just a gallery grid, and I want to add padding to the right side of the page so the gallery doesn't take up the entire screen. I've tried a few solutions but I can't quite get it to work. Would really appreciate if anyone could help me out with a solution.

Page: https://glennoctor.com/

Thanks!

Add to Design > Custom CSS

@media screen and (min-width:901px) {
.collection-type-gallery #thumbnails .thumb {
    width: 100% !important;
}
.collection-type-gallery.enable-gallery-thumbnails.thumbnail-view #thumbnails {
    width: 80% !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
2 hours ago, tuanphan said:

Add to Design > Custom CSS

@media screen and (min-width:901px) {
.collection-type-gallery #thumbnails .thumb {
    width: 100% !important;
}
.collection-type-gallery.enable-gallery-thumbnails.thumbnail-view #thumbnails {
    width: 80% !important;
}
}

 

Thank you! Appreciate the help.

When I implement that code in full it seems to break the thumbnail scaling for some reason - as in the attached screenshot.

After messing around with it a bit it seems like the issue is caused by the third line -

width: 100% !important;

Changing that percentage doesn't help, but deleting the line completely seems to make it function as intended - as in the current active layout. No idea why that fixed it, but I'm happy with the result!

Thanks again!

Screen Snip.jpg

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.