Jump to content

Add to Cart Buttons not-justified

Recommended Posts

  • 11 months later...

@tuanphanI used code above to successfully create space between product title and description, but I'm hoping to align buttons at base (the "add to cart" to be bottom justified). My buttons vary due to some item descriptions being longer then others (1 vs 2 lines of description copy bumps the button out of alignment). Can you help w/ coding?

Site: hrdripbar.squarespace.com/dripcocktails
Password: Dripbar21

Link to comment
On 5/18/2021 at 5:23 AM, ColeH_design said:

@tuanphanI used code above to successfully create space between product title and description, but I'm hoping to align buttons at base (the "add to cart" to be bottom justified). My buttons vary due to some item descriptions being longer then others (1 vs 2 lines of description copy bumps the button out of alignment). Can you help w/ coding?

Site: hrdripbar.squarespace.com/dripcocktails
Password: Dripbar21

Add to Design > Custom CSS

/* Align add to cart */
@media screen and (min-width:768px) {
div#page-section-609b3ee39e0fa43c547c4288 .span-4 .sqs-add-to-cart-button-wrapper {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}
div#page-section-609b3ee39e0fa43c547c4288 .span-12>.row>.span-4 {
    flex: 1;
    position: relative;
    padding-bottom: 100px;
}
div#page-section-609b3ee39e0fa43c547c4288 .product-block {
    position: static;
}
}

 

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.