Adjust padding/margin on Rich Text in Dawn

Topic summary

A user wants to reduce the padding/margin on a Rich Text block in the Dawn theme to match the width of contact form fields, creating visual alignment.

Attempted Solution:

  • Initially tried editing section-rich-text.css without success

Proposed Fix:
Another user suggests adding custom CSS code to the theme’s stylesheet (base.css, style.css, or theme.css):

  • Navigate to: Shopify Admin → Online Store → Themes → Actions → Edit code → Assets folder
  • Add CSS targeting the rich text wrapper class with padding: 0 9rem;
  • The solution includes a media query for desktop screens only (min-width: 749px)
  • An image showing the expected result is referenced

The discussion remains open, awaiting confirmation whether the proposed CSS solution resolves the padding issue.

Summarized with AI on November 5. AI used: claude-sonnet-4-5-20250929.

Hi, how can I adjust padding in rich text block to less than 100%? I had a play in section-rich-text.css but didn’t have any effect. I’d kind of like it to be the same width as the contact form fields so everything is in unison.

https://boops.co.uk/pages/about-us

Thanks, Kristian

1 Like

Hi @Boops_1

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:
@media only screen and (min-width: 749px){
.section-template--23569028809047__rich_text_7PQCf8-padding .rich-text__wrapper {
    padding: 0 9rem;
}
}

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