Reduce padding of Rich Text

Topic summary

A user seeks help reducing the top and bottom padding of a Rich Text section on their Shopify store.

Solution Provided:

  • Navigate to Admin → Online Store → Themes
  • Select the active theme and locate the Asset folder
  • Open the main CSS file (main.css, base.css, style.css, or theme.css)
  • Add custom CSS targeting the specific color scheme section at the bottom of the file
  • The code adjusts padding-top to 2.5rem and padding-bottom to 2rem

Outcome:
The solution was successfully implemented and confirmed working by the original poster.

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

Hi,

I’d like to reduce the top and bottom padding of the Rich Text section. Can you please help provide a custom CSS code? My site is www.embroidtale.com

Thanks.

1 Like

Hi @liu_x_trujillo1

Check this one.

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

.color-scheme.color-scheme--scheme-2.color-scheme--bg-54922f2e920ba8346f6dc0fba343d673.section-spacing {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
}

And Save.

Result:

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

Thank you so much it worked!!