How to fix the height of a product on collection list for mobile?

Hi,

I entered code in my store to create 2 columns for my collection list. The code worked but i have one small problem. The product on the bottom right is longer than all the products. (See screenshot)

How do i fix this issue?

Thanks

1 Like

Hi @Allen6224

Can I check the store URL? Would you mind to share. Thanks!

Here’s the link.

Www.liftchairheaven.com

Thanks for te info, check this one.

From your Shopify admin dashboard, click on “Online Store” and then “Themes”.

Find the theme that you want to edit and click on “Actions” and then “Edit code”.

In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

@media only screen and (max-width: 550px){
.card--media .card__text-spacing {
    padding: 1rem;
}
.collection-list-section .card--stretch.card-colored {
    display:flex;
    flex-direction:column;
    justify-content: space-between;
    height: 38vh;
}
}
@media only screen and (max-width: 400px){ 
    .collection-list-section .card--stretch.card-colored {
        height: 32vh;
    }
}

And Save.

Result:

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

Thanks. That worked