Change Background Color in "Featured Product" Section Dawn Theme

There are 2 sections here, “Rich text” section and “Featured Product” section.
I have added this custom css to both section.

div {
  background-color: #f5f5f5;
}

This simple code did the job and changed the background color to light grey.
However, The “Featured Product” section div is not full-width, there’s a huge gap without background color at both side.
I tried adding this css code below, but the content inside become full-width as well.

div {
  background-color: #f5f5f5;
  max-width: 100%;
}

I would like to fill up the background color of the “Featured Product” Section while having the content stay the same size.

Any expert familiar with Dawn theme here know how to fix this?

1 Like

Hi @palettepaws

Would you mind to share your Store URL website? with password if its protected. Thanks!

It’s palettepaws.com
Password is cheath

1 Like

Thank you for the information.

Try this one then.

  • 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#shopify-section-template--20653650510129__7416bdd0-56e2-41e3-82cb-07cb1058f791 {
    max-width: var(--page-width);
    margin: auto;
    padding: 0 5rem;
}

hmmm tried it, but doesn’t seem to solve the issue.
What i wanted was simply have the same light grey color at both left and right side.

1 Like

Oh sorry I miss understand, i checked your website now. Is this solved?

This is Screen Shot at the moment.