How to change size of rich text section

How to change size of rich text section

Donna_BW
Tourist
4 0 3

I want to change the Rich Text box adjust to a small border around the text only on one page. It is just too big on this page.  I would like to enter the code in the CSS box at the bottom of the section that will just have a small border around whatever text is entered

 

Thank yyou!

 

Screenshot 2025-03-04 101617.png

Replies 6 (6)

Moeed
Shopify Partner
7147 1932 2354

Hey @Donna_BW 

 

Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


LizHoang
Shopify Partner
1251 159 196

Hi @Donna_BW 

Can you share store URL?

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program

goldi07
Trailblazer
153 11 16

Hello @Donna_BW 

1 Go to Shopify Admin > Online Store > Customize.

2 Navigate to the specific page where you want this change.

3 Click on the Rich Text section.

4 Scroll to the bottom and find the Custom CSS box.

5 Paste the code above.

6 Click Save and refresh the page to check the update.

.custom-rich-text {
  display: inline-block;
  border: 1px solid #000;
  padding: 10px;
  max-width: fit-content;
}

Thank you 😊

Was I helpful?

Buy me a coffee



Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -Goldi184507@gmail.com - Skype: live:.cid.819bad8ddb52736c -Whatsapp: +919317950519
Checkout Some Free Sections Here
Donna_BW
Tourist
4 0 3

Hi there.

 

I copied that code into the css section, saved it, but there was no change. Could it be the theme I am using??

 

Thx

Screenshot 2025-03-06 084119.png

goldi07
Trailblazer
153 11 16

Hey @Donna_BW 

Apply CSS to the Correct Class
Try this updated code in the Custom CSS box:

.rich-text__wrapper {
    display: inline-block !important;
    border: 1px solid #000 !important; /* Black border */
    padding: 10px !important;
    max-width: max-content !important;
    background: transparent !important;
}

 

If It's Still Not Working
Try adding this instead:

 .rich-text {
    display: inline-block !important;
    border: 1px solid #000 !important;
    padding: 10px !important;
    max-width: max-content !important;
}

 

Thank you 😊

Was I helpful?

Buy me a coffee



Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -Goldi184507@gmail.com - Skype: live:.cid.819bad8ddb52736c -Whatsapp: +919317950519
Checkout Some Free Sections Here
Donna_BW
Tourist
4 0 3

Thank you, but I'm afraid that did not work either. No worries. It is what it is.

Have a nice weekend.