Jump to content

[Share] Decrease Space Above and Below List Carousel Section

Recommended Posts

You can use these CSS code to Website Tools > Custom CSS to decrease space above/below List Carousel (or List Simple Grid).

#1. Space on All Carousels

/* Carousel Padding */
.user-items-list {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

image.png.8f27b7abd92523523dd082b9b61cd139.png

#2. Space on Specific Carousel

First, you need to find the Carousel ID.

In my example, it is:

section[data-section-id="6691fac7f5f20532008c4b08"]

image.png.c7e833f8d130b30669f1e13b177f35e5.png

Next, use CSS code like this

section[data-section-id="6691fac7f5f20532008c4b08"] .user-items-list {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

#3. Space: All Carousels on One Page

You need to find the Page ID. Use #2 tool. In my example, we have:

#collection-6691f8870a69e8146fbc79b6

image.png.00a72f09f2e92d94178fe9dfffe0dafe.png

and we can use CSS like this

#collection-6691f8870a69e8146fbc79b6 .user-items-list {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

#4. Space on Desktop Only

@media screen and (min-width:768px) {
.user-items-list {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}
}

#5. Space on Mobile only

@media screen and (max-width:767px) {
  .user-items-list {
    padding-top: 0px !important;
    padding-bottom: 0px !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.