Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
Bill1965

Custom CSS for Padding on Gallery Sides (Brine)

Question

Does anyone know the name of the (index) gallery container to which I can change the padding in Custom CSS? To replace the .xxx below

.xxx {padding-left, padding-right: 40px;}

I have a site padding of 40px and a padding between index gallery images of 20px.So the gallery sticks out by 20px more than the header and the rest of the site content.(If I put down no side padding for the index gallery in the style editor, then the gallery will stick out by 40px).

I could also apply the padding to the gallery page, instead of the gallery image container.

Using Brine, but I'm not sure it matters.

Edited by Bill1965
Initial Revision

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 0

I figured it out looking at the page source

.Index-gallery {margin-left: 10px; margin-right: 10px;}

It's case specific, though... kind of odd: "Index" needs to be capitalized.

Share this post


Link to post
  • 0

That's correct. HTML class names are case-sensitive.


World-class Squarespace Developer and Squarespace Circle Leader with a strong reputation on the Squarespace Forum.
I'm trusted by hundreds of Squarespace users worldwide, including designers, freelancers, business owners and big agencies.

I can tackle anything from small tweaks to full websites and I'm available for short and long bookings (min. 1 hour).
Book via my website giving as much notice as possible. Note that I'm usually booked 4 - 6 weeks in advance for jobs longer than 2 hours.
Prebuilt Squarespace Extensions
Custom Squarespace Extensions: Tell me about the functionality you need

**NEW** Our popular Enquiry Form ExtensionDate Picker Extension and Age Verification Extension are now Squarespace 7.1 compatible.

Share this post


Link to post

Create an account or sign in to comment

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


×
×
  • Create New...