Jump to content

Remove padding on gallery in mobile view

Recommended Posts

Mobile view on my site is showing so much padding on top and bottom of the gallery images. Looks fine on desktop. I used this code from another query answerd by @tuanphan, which worked for the top margin but not the bottom. Any suggestions on how to fix it?

 

@media screen and (max-width:767px) {
#page article section:first-child {
    padding-top: 0px !important; 
      padding-bottom: 0px !important; 
}
}

Screen Shot 2021-05-25 at 2.57.40 pm.png

Edited by addsomesalt
Link to comment
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

8 minutes ago, addsomesalt said:

Sure – it's not live yet but here you go. If it asks password is Catalyst

 

https://cobalt-hen-p6rs.squarespace.com/

 

Add to Design > Custom CSS > Then save & reload the site

/*Mobile-Home-Slideshow */
@media screen and (max-width:767px) {
body.homepage .gallery-slideshow {
    height: 35vh !important;
    margin-top: 15vh;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.