How can I resize collection cards on desktop view only?

Is there any way to make the collection cards smaller on desktop only? I would like to make them all about half the size they are now on my homepage and make the text proportional to the smaller size as well.

Discountotc.com PW Halo

1 Like

Hi @EZ7 ,

I understand that you want to make the collection cards smaller on desktop.

Try this.

  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 “theme.css, styles.css or base.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:
  4. And Save.
ul#Slider-template--18596832051519__c1483b95-027f-4882-a37d-ceb2502ed813 li {
    --grid-desktop-horizontal-spacing: 250px;
}

Result:

The other collection list also.

ul#Slider-template--18596832051519__1bda8029-33f4-440f-8dfa-ac1e8f130b19 li {
    --grid-desktop-horizontal-spacing: 250px;
}

Result:

I hope it help.

Hi @EZ7

I hope you are doing good and welcome to the Shopify Community!
I am San from MS Web Designer.

Please add this css in your bottom of the css file:

.section-template–18596832051519__c1483b95-027f-4882-a37d-ceb2502ed813-padding .card__inner {width: 50% !important;margin: 0 auto;}.card__heading:last-child {font-size: 16px !important;}

Regards,

San

Thank you, how can I make them centered now?

1 Like

Thank you, how can I do this for the “Shop By Brand” section as well?

To center this you can try this one.

ul#Slider-template--18596832051519__c1483b95-027f-4882-a37d-ceb2502ed813 {
    justify-content: center;
}
ul#Slider-template--18596832051519__1bda8029-33f4-440f-8dfa-ac1e8f130b19 {
    justify-content: center;
}

Result:

I hope this help.

That works, is there any way to make the shop by brand section rows of 3? Rather than 4 on top and 2 on the bottom

I pasted this code in custom css. But nothing changed I even changed it to 20px. Its on shop.bosatek.com

To specify i only wanna make it smaller on mobile not pc

Us there any way to make the shop-by-brand section rows of 3? Rather than 4 on top and 2 on the bottom