Align "buy now" buttons within collections

Hello,

I’m looking for a way to align the “buynow” buttons at the bottom of my collections, as they are currently not aligning. Currently they are positioned based on the length of the text above the buttons. I want to align them at the bottom of each product card so they line up. Any suggestions?

I appreciate all help, thanks in advance! :slightly_smiling_face:

My store: gryningens

Hello @spoyled

You can follow these steps:

  1. Go to Online Store->Theme->Edit code

  1. Open your theme.liquid file, paste the below code before

I hope the above is useful to you.

Kind & Best regards,
GemPages Support Team

1 Like

Hi @Ivnvu

You can try my CSS, result as my screenshot

.product-item {
  display: flex;
  flex-flow: column;
}
.product-item .product-item__title,
.product-item .product-item__text {
  flex: 1;
}

1 Like

Hi @Ivnvu ,

This is Victor from PageFly - Free Landing Page Builder.

Please follow my steps below:

Step 1: Online Stores > More action > edit code > search for your .css file ( could be theme.css

Step 2: paste the code at the end of the file

.product-item {

    display: flex !important;

    flex-direction: column !important;

    overflow: visible !important;

    justify-content: end !important;

}

Hope this can help you solve the issue

Best regards,

Victor | PageFly

1 Like

Thanks for the amazing help guys!

1 Like

Hi @Ivnvu ,

You’re most welcome!

I’m glad I can help you :blush:

Hi! Does it matter where specifically I inject this code within the code that the Buy Button provides?