logo
search
Formatting Issues

How to Remove Text Box Borders on a Modern SharePoint Page

Guest WriterGuest Writer Oct 10, 2026 868 views

Question details

The user needs to remove an unexpected border appearing around a Text web part on a modern SharePoint page.

How to Remove a Text Box Border from 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.
Before you start

Ensure you have edit permissions for the SharePoint site and are familiar with how to add, modify, and configure sections on a modern page.

Solution 1Recommended

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.

1
Create a test page

Navigate to your SharePoint site, click 'New' from the home page, and select 'Page' to create a blank modern page.

2
Add the Text web part

Click the '+' icon to add a new web part and select 'Text'. Type some sample text into the web part.

3
Compare the layouts

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.

Troubleshoot Page Layout and Section Configuration
Default Behavior: Text web parts on standard modern SharePoint pages do not include borders. Always check section backgrounds and layout templates if borders unexpectedly appear.
Free Microsoft Office alternative

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.

Fully compatible with Microsoft Office formats (.docx, .xlsx, .pptx).Lightweight design ensures fast loading and smooth editing for all your page drafts.Free to use with a familiar user interface for a zero-learning-curve migration.
microsoft office alternative - wps office

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.