Shopify themes, liquid, logos, and UX
On my product cards I have too much padding around the title and price and it makes for a bunch of needless black background space and also makes it so that I have to use a smaller font. How do I decrease the padding so that my Product Card Titles are almost touching the gold border I have around my cards? Here's a picture for example of what it looks like now:
and this is the code I'm using in theme.liquid to modify the font sizes and colors inside my product cards. I'm assuming their is code that I can implement into this section to modify padding as well:
<style>
@media screen and (min-width: 768px) {
.card__heading {
font-size:15px !important;
}
.price {
font-size: 15px !important;
color: #FAF9F6 !important
}
.price .price__sale .price-item--regular {
font-size: 12px !important;
color: #C44141 !important;
}
}
@media screen and (max-width: 767px) {
.card__heading {
font-size: 10px !important;
}
.price {
font-size: 10px !important;
color: #FAF9F6 !important
}
.price .price__sale .price-item--regular {
font-size: 10px !important;
color: #C44141 !important;
}
}
</style>
Thanks for the help in advance!
Solved! Go to the solution
This is an accepted solution.
Hello @namestolen ,
Add this css just before this tag </style>
make sure you will not break the previous css
.card__content {
padding-left: 0 !important;
padding-right: 0 !important;
}
.card__information{
padding-left: 0 !important;
padding-right: 0 !important;
}
Thanks
This is an accepted solution.
Hello @namestolen ,
Add this css just before this tag </style>
make sure you will not break the previous css
.card__content {
padding-left: 0 !important;
padding-right: 0 !important;
}
.card__information{
padding-left: 0 !important;
padding-right: 0 !important;
}
Thanks
Thank you. What's the correct code to reduce the padding on the top and bottom as well?
Nevermind, I figured it out.
.card__content {
padding-left: 0 !important;
padding-right: 0 !important;
padding-top: 0 !important;
padding-bottom: 0 !important;
}
.card__information{
padding-left: 0 !important;
padding-right: 0 !important;
padding-top: 0 !important;
padding-bottom: 0 !important;
}
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025