Jump to content

Hyde: Add Padding to product pages?

Recommended Posts

  • Replies 5
  • Views 1k
  • Created
  • Last Reply
  • 2 weeks later...
Posted

Yes to the left/right of the page!

I tried the code, but whenever I adjust numbers it makes the product grid off center. Which numbers do I adjust to add equal padding to the left & right, keeping it centered? 

 

THank you! 

Posted

I inserted the code and adjusted the -2, -2 to -10 and -10 and it didn't change anything... the original code did not change anything either. Not sure whats going on there 

Posted

Remove above & Add new code

@media screen and (min-width:641px) {
.ProductList-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    width: 90% !important;
    margin: 0 auto !important;
    clear: none !important;
    grid-column-gap: 10px;
}
.ProductList-item {
    width: 100% !important;
    clear: none !important;
    float: none !important;
    margin: 0 !important;
}
}

Edit 90% to any value what you want

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!)

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.