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!
Discover 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, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025