Jump to content

Change padding on Images mobile without changing desktop?

Recommended Posts

  • Replies 6
  • Views 342
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

1 hour ago, Rjafadi said:

Site URL: https://www.prsnlhb.com/tops/phb-essential-logo-t-shirt-black

Hi everyone,

Is there a way to move up the padding image on mobile without affecting the desktop padding? 

Thank you

Screenshot 2022-09-16 at 23.08.14.png

Try adding to Home > Design > Custom Css

@media screen and (max-width: 640px){
  figure.ProductItem-gallery {
    margin-top:0;
  }
  .ProductItem-nav {
    padding-bottom: 15px;
  }
}

Let me know how it works on your site

Edited by bangank36

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace (+100 Spark plugin customisations)
🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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.png.a5802ecff3519d81009afad839526d80.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace (+100 Spark plugin customisations)
🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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

Check my code again, change the value padding to meet your need

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace (+100 Spark plugin customisations)
🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
1 hour ago, Rjafadi said:

Thank you! @bangank36 anyway I can remove this?

Screenshot 2022-09-17 at 00.37.40.png

I include with the old code to hide the paging Info of images gallery

/*style for mobile*/
@media screen and (max-width: 640px){
  /*reduce padding product gallery*/
  figure.ProductItem-gallery {
    margin-top:0;
  }
  .ProductItem-nav {
    padding-bottom: 15px;
  }
  
  /*hide the paging info*/
  .ProductItem-gallery .pagingInfo {
    display: none;
  } 
}

Support me by pressing 👍 if this useful for you

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace (+100 Spark plugin customisations)
🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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.