How to Remove Text Box Borders on a Modern SharePoint Page
Question details
The user needs to remove an unexpected border appearing around a Text web part on a modern SharePoint page.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- Editing a modern SharePoint home page and encountering unexpected borders around a Text web part.
- Observed behavior
- A border appears around the Text web part, which is not the default behavior in modern SharePoint.
Ensure you have edit permissions for the SharePoint site and are familiar with how to add, modify, and configure sections on a modern page.
Troubleshoot Page Layout and Section Configuration
Identify if the issue is tied to a specific page layout by testing the web part on a new page.
Modern SharePoint Text web parts do not display a border by default. If a border appears, it is typically caused by the specific page layout or section formatting where the web part is placed.
Navigate to your SharePoint site, click 'New' from the home page, and select 'Page' to create a blank modern page.
Click the '+' icon to add a new web part and select 'Text'. Type some sample text into the web part.
If the new page does not show a border, return to the original page and check the section settings. Consider recreating the section or copying the content into a new layout without the problematic formatting.

Edit and Manage Documents Seamlessly with WPS Office
While SharePoint is great for web-based intranet pages, managing your actual documents offline or locally requires a reliable office suite. WPS Office is a lightweight, free alternative to Microsoft Office that offers seamless document editing.

Frequently Asked Questions
Can I add a custom border to a Text web part in modern SharePoint?
Out of the box, modern SharePoint does not provide a direct setting to add borders to Text web parts. You typically need to use customized section backgrounds or embed codes to create visual separation.
Why do older SharePoint pages have different text box formatting?
Classic SharePoint pages used different web parts (like the Content Editor) which allowed deep HTML and CSS customization, including borders. Modern pages restrict this to ensure a responsive, consistent design.
How do I change the background color of a web part section?
Click the Edit icon on your modern page, select the section containing your web part, and click the 'Edit section' button on the left. From there, you can choose a different section background color to highlight your text.




