Jump to content

Same CSS margin setting but display differently

Recommended Posts

Site URL: https://humbeeshop.squarespace.com/

Home page: https://humbeeshop.squarespace.com/
Product page: https://humbeeshop.squarespace.com/shop/hand-sanitizer-disinfectant-gel-169oz50ml-packs-of-61224
PW: 2020

Hi I am wondering why above two page display different margin width? I checked the CSS style and they are all "auto 0" and with padding 4vw. But you can see the actual margin width differs a lot.

How can I adjust the product to be as same as the homepage margin?

Link to comment
  • Replies 5
  • Created
  • Last Reply

Add to Homepage Settings > Advanced > Header

<style>
  @media screen and (min-width:768px) {
  section.products.collection-content-wrapper {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
  #page section .content-wrapper {
    max-width: 1280px;
    padding-left: 4vw;
    padding-right: 4vw;
    margin: 0 auto;
}
  }
</style>

 

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

Link to comment
 @media screen and (min-width:768px) {
  section.products.collection-content-wrapper {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
  #page section .content-wrapper {
    max-width: 1280px;
    padding-left: 4vw;
    padding-right: 4vw;
    margin: 0 auto;
}
[data-section-id="5ee28a67e42f6179b8d9ebd4"] .content-wrapper {
    padding: 0 !important;
    max-width: 100% !important;
}
  }

 

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

Link to comment

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.