Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Hyde: Add Padding to product pages?


rebexowen

Question

  • Answers 5
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

5 answers to this question

Recommended Posts

  • 0

Padding left/right of page or padding between products?

If page, add this to Design > Custom CSS

.ProductList-grid {
    margin: 0 -2vw -2vw 0;
}

 

Link to post
  • 0

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! 

Link to post
  • 0

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 

Link to post
  • 0

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

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...