Help! Add padding and radius to product information section

Solved

Help! Add padding and radius to product information section

SharonP
Tourist
13 0 4

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!

 

padding-product-page.png

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
6827 1629 2007

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:

Made4uoRibe_0-1718200910304.png

Made4uoRibe_1-1718200925613.png

Desktop and mobile view. 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

View solution in original post

Replies 2 (2)

Made4uo-Ribe
Shopify Partner
6827 1629 2007

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:

Made4uoRibe_0-1718200910304.png

Made4uoRibe_1-1718200925613.png

Desktop and mobile view. 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
SharonP
Tourist
13 0 4

That worked perfectly! So happy!