Shopify themes, liquid, logos, and UX
Hi all!
How can I add padding left and right and radius to the product information section?
For desktop and mobile both.
At this moment, it is just full screen width (see top image).
What I'd like to achieve in the bottom image.
Thank you so much for your help!
Solved! Go to the solution
This is an accepted solution.
Hi @SharonP
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:
section#MainProduct-template--17802823958767__main {
border-radius: 10px;
margin: 0 5rem;
}
@media only screen and (max-width: 749px){
section#MainProduct-template--17802823958767__main {
margin: 0 1.5rem;
}
}
And Save.
Result:
Desktop and mobile view.
This is an accepted solution.
Hi @SharonP
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:
section#MainProduct-template--17802823958767__main {
border-radius: 10px;
margin: 0 5rem;
}
@media only screen and (max-width: 749px){
section#MainProduct-template--17802823958767__main {
margin: 0 1.5rem;
}
}
And Save.
Result:
Desktop and mobile view.
That worked perfectly! So happy!
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025