Hi,
i want the product picture on the frong page smaller with 10 pixel corners like here:
url: https://ba571d-cc.myshopify.com/
dawn theme 15.0.0
Thank you
A user wants to reduce product image sizes on their store’s front page and add 10-pixel rounded corners, similar to a reference image they provided.
Two solutions were offered:
GTLOfficial’s approach: Modify component-card.css at line 44, replacing .card__inner { width: 100%; } with .card__inner { width: 80%; } to reduce image container width.
Sweans’ approach: Add CSS targeting .card--card .card__inner .card__media with border-radius: 10px for rounded corners, plus adjustable width (85%) and height (75%) properties.
Both solutions involve editing the theme’s CSS files (Dawn theme version 15.0.0). The user can customize dimensions to match their design needs. The discussion appears resolved with working solutions provided.
Hi,
i want the product picture on the frong page smaller with 10 pixel corners like here:
url: https://ba571d-cc.myshopify.com/
dawn theme 15.0.0
Thank you
Hello @store095
Go to online store ----> themes ----> actions ----> edit code ---->assets ---->component-card.css ----> line number 44
search this code
.card__inner {
width: 100%;
}
and replace with this code.
.card__inner {
width: 80%;
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
Hi @store095 ,
To change the size of the product picture only on the front page, you can use the following CSS code:
.card--card .card__inner .card__media {
border-radius: 10px;
/* width height adjustments */
width: 85%;
height: 75%;
}
This code will adjust the product image size and add a border radius to make the corners rounded.
You can customize the width and height to fit your design needs. Just add this code to your theme’s CSS file.
I hope this helps! If it does, please like it and mark it as a solution!
If you need further assistance, feel free to reach out!
Regards,
Sweans