Jump to content

[Share] Spacing on Product Page

Recommended Posts

Some CSS code to adjust spacing on Product Detail Page. If the code doesn't work, you can send link to product page on your site, I will check it again.

#1. Space above Product Title

/* #1. Space above product title */
section.product-details.ProductItem-details {
    padding-top: 0px !important;
}

image.png.4a8d12a42d762211160c30172e5d57af.png

#2. Space between Product Title – Price

/* #2. Space between title - product */
h1.ProductItem-details-title {
    margin-bottom: 0px !important;
}

image.png.d10203cc6e2ac41b3e1df70d57d9cd35.png

#3. Space between Product Price – Description

/* #3.  Space between Product Price - Description  */
div.ProductItem-details-excerpt>p:first-child {
    margin-top: 0px !important;
}
div.ProductItem-product-price, div.ProductItem-product-price .product-price {
    margin-bottom: 0px !important;
}

image.png.0c7d1058377dd39999fb37631807557d.png

#4. Space between Description – Quantity

/* #4. Space between Description - Quantity */
div.ProductItem-details-excerpt {
    margin-bottom: 0px !important;
}
div.ProductItem-details-excerpt p:last-child {
    margin-bottom: 0px;
}

image.png.7b43413ba5c0cf41166eca491030d0ed.png

#5. Space between Quantity – Add to Cart

/* #5. Space between Quantity - Add to Cart */
div.product-quantity-input {
    margin-bottom: 5px !important;
}

image.png.c10a82876b0a2381b39a600748244598.png

#6. Space between Description – Variant Dropdown

/* #6. Space between Description - Variant Dropdown */
div.ProductItem-details-excerpt {
    margin-bottom: 0px !important;
}
div.ProductItem-details-excerpt p:last-child {
    margin-bottom: 0px;
}

image.png.8462d3567e68fd94f1e883d5c612f4ea.png

#7. Space between Variant Dropdown – Quantity

/* #7. Space between Variant Dropdown - Quantity */
div.variant-option {
    margin-bottom: 5px !important;
}

image.png.23062d774f365205188aff6b05602d16.png

#8. Space between Thumbnails

/* #8. Space between Thumbnails  */
.ProductItem-gallery-thumbnails-item {
    margin-bottom: 40px !important;
}

image.png.2bea3e4a422a0a9a9d9c440d81da4a11.png

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

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.