Jump to content

How to remove top/bottom padding from Gallery-Strips in Mobile View

Recommended Posts

Site URL: https://bounthavong.com/

Hello, I am trying to remove the top and bottom gaps between Gallery-Strips that appear only when in Mobile View. 

I have tried adding the following css code but it does not seem to work:

@media screen and (max-width:640px) {
.gallery-strips {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}
}

Any help would be super appreciated! 

 

Thx very much! squarespace_question_00.thumb.jpg.eaa021b3c3e8aa986bfaa4d82475a589.jpg

Link to comment
  • Replies 3
  • Views 513
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

On 5/14/2022 at 1:02 AM, CARN3_ASADA said:

Site URL: https://bounthavong.com/

Hello, I am trying to remove the top and bottom gaps between Gallery-Strips that appear only when in Mobile View. 

I have tried adding the following css code but it does not seem to work:

@media screen and (max-width:640px) {
.gallery-strips {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}
}

Any help would be super appreciated! 

 

Thx very much! squarespace_question_00.thumb.jpg.eaa021b3c3e8aa986bfaa4d82475a589.jpg

You can try

@media only screen and (max-width: 767px) {
  #collection-5e82dc9205dc426d6194f7b9 .gallery-section-wrapper, #collection-5e82dc9205dc426d6194f7b9 .gallery-section-wrapper > .gallery  {
    min-height: unset !important;
  }
}

Let me know how it works on your site

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

My testing

image.thumb.png.d79e0a484a36a8f5118ff87322f7de2a.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. 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.