Solved

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

Allen6224
Tourist
8 0 1

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
5991 1444 1783

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!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


View solution in original post

Replies 4 (4)

Made4uo-Ribe
Shopify Partner
5991 1444 1783

Hi @Allen6224 

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

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


Allen6224
Tourist
8 0 1

Here's the link.

 

Www.liftchairheaven.com

Made4uo-Ribe
Shopify Partner
5991 1444 1783

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!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


Allen6224
Tourist
8 0 1

Thanks. That worked