section background extends outside the section content

Solved

section background extends outside the section content

jahin2
Excursionist
30 1 5

the red section backgrounds on home page & product page are supposed to be end near section contents. but its extending to the edge of the page. see the green box below this is where the red background should end and have a rounded corner. can anyone please help me with this one?

jahin2_0-1735322772270.png

 

 

 

store url: https://he5mt0alnsaibtvo-90656506170.shopifypreview.com

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
10100 2398 3034

This is an accepted solution.

Hi @jahin2 

Try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. 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:

 

.shopify-section.section  {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 5rem;
    width: 100% !important;
}

.shopify-section.section .color-scheme-fff4b6e9-b727-44a0-8ce6-a5ab46d67db0, .shopify-section.section .color-scheme-5 {
    border-radius: 20px;
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1735329607711.png

     

 Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 4 (4)

thescriptflow
Shopify Partner
609 41 81

Hey @jahin2 please paste this code in base.css file of your theme.

.section-template--23666906530106__image_with_text_j4n8Yt-padding.gradient.color-scheme-fff4b6e9-b727-44a0-8ce6-a5ab46d67db0 {
    border-radius: 25px !important;
}

- Need a Shopify Specialist? Chat on WhatsApp Or Email at info@thescriptflow.com

- Boost Your Sales with Affiliate Marketing - UpPromote: Affiliate & Referral


- If my solution was helpful, mark it as a solution and hit the like button! And Wait Don't forget to Buy me a Coffee

jahin2
Excursionist
30 1 5

Thank you so much. 

Made4uo-Ribe
Shopify Partner
10100 2398 3034

This is an accepted solution.

Hi @jahin2 

Try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. 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:

 

.shopify-section.section  {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 5rem;
    width: 100% !important;
}

.shopify-section.section .color-scheme-fff4b6e9-b727-44a0-8ce6-a5ab46d67db0, .shopify-section.section .color-scheme-5 {
    border-radius: 20px;
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1735329607711.png

     

 Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
jahin2
Excursionist
30 1 5

Thankyou so much for the help.