Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Adjust padding/margin on Rich Text in Dawn

Adjust padding/margin on Rich Text in Dawn

Boops
Shopify Partner
30 0 15

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

Replies 2 (2)

Made4uo-Ribe
Shopify Partner
9039 2160 2665

Hi @Boops 

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;
}
}

 

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

    I only add this one on the desktop screen. 

 

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.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

comercioservice
Shopify Partner
272 37 34

@Boops 

 
hi Hope you are well,
I’ve taken a look at what you need—just a little CSS magic, and everything will be fixed! Follow my steps, and you'll have it sorted in no time!

1, from admin, go to Online Store > Themes.
2, Actions > Edit code for your active theme.
3, Find and open the theme.liquid file, maybe in the Layout folder.
4, Look for the </head> tag and paste the code in the end

 

<style>
@media only screen and (min-width: 749px){
.section-template--23569028809047__rich_text_7PQCf8-padding .rich-text__wrapper {
    padding: 0 9rem;
}
}
</style>
​

 

result:

gutenplayer_0-1728593114566.png

 

I hope it works for you, let me know, and If you'd like to discuss this more, don't hesitate to send me a PM
Thank you
Was my reply helpful? Click Like to let me know! Was your question answered? Mark it as an Accepted Solution.
Need store customizations, bug fixing or development ? Contact with us -- Support form for quick quote!
BFCM Big Deals: Big savings 25% off -on our Shopify FAQs apps!