Adjusting Spacing on Mobile for 'Product Grid'

Solved

Adjusting Spacing on Mobile for 'Product Grid'

RazanB
Visitor
2 0 1

I'm using the product grid option on the dawn theme and on desktop the products show up correctly but on mobile there is a huge white space after the product title. How can I adjust it so the space is smaller on mobile only? https://obasan.ca/collections/pillows

 

Mobile:

Screenshot 2024-12-09 at 11.32.25 AM.png

 

Desktop:

Screenshot 2024-12-09 at 11.32.36 AM.png

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
9687 2304 2878

This is an accepted solution.

Hi @RazanB 

Try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. 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 screen and (max-width: 749px) {
    .collection .card__information {
        height: auto;
    }
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1733766197714.png

     

 

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

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.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

View solution in original post

Replies 2 (2)

Made4uo-Ribe
Shopify Partner
9687 2304 2878

This is an accepted solution.

Hi @RazanB 

Try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. 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 screen and (max-width: 749px) {
    .collection .card__information {
        height: auto;
    }
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1733766197714.png

     

 

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

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.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
RazanB
Visitor
2 0 1

Amazing thank you!!