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

Solved

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

Allen6224
Excursionist
42 0 11

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?

 

Allen6224_0-1714410917998.png

 



Thanks

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
10036 2386 3012

This is an accepted solution.

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:

Made4uoRibe_0-1714489326214.png

 

 

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

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 4 (4)

Made4uo-Ribe
Shopify Partner
10036 2386 3012

Hi @Allen6224 

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

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Allen6224
Excursionist
42 0 11

Here's the link.

 

Www.liftchairheaven.com

Made4uo-Ribe
Shopify Partner
10036 2386 3012

This is an accepted solution.

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:

Made4uoRibe_0-1714489326214.png

 

 

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

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Allen6224
Excursionist
42 0 11

Thanks. That worked