Reduce Column Spacing on SharePoint Modern Pages
Question details
Find a supported way to reduce whitespace between text columns on a SharePoint Online modern page.

- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- A modern page uses multiple columns with Text web parts, and the user wants a more compact layout.
- Observed behavior
- The page displays excessive whitespace between columns, and the Text web part has no direct setting to reduce it.
Open the modern page and confirm that you have permission to edit it. Check which section layout and web parts are creating the unwanted whitespace.
Use a custom SharePoint Framework web part
Use this approach when precise spacing is essential and your organization can develop and deploy a custom component.
The standard Text web part does not provide a direct setting for reducing column spacing. A custom SharePoint Framework (SPFx) web part can control the layout and spacing of content inside that web part, but it does not change the spacing settings of the standard Text web part.
On the modern page, select Edit and identify the text and columns you want the custom web part to replace.
Ask a SharePoint developer to create an SPFx web part with the required column spacing and arrange deployment through your organization's app catalog.
In page edit mode, select the plus button in a section, add the deployed web part, and configure its content and spacing. Select Republish when the layout is ready.

Try a different modern page section layout
Use a different section layout to see whether it presents your content more compactly without custom development.
Create compact column layouts in WPS Writer
WPS Office is a free, lightweight alternative with a familiar interface and support for Microsoft Office formats, making it easy to move existing documents into WPS. Use WPS Writer for document column layouts; it does not change spacing on SharePoint pages.

Frequently Asked Questions
Can I change column spacing in the SharePoint Text web part?
No direct supported spacing setting is available in the modern Text web part. You can try a different section layout or use a custom SPFx web part for control over its own content.
Will changing the section layout remove the whitespace?
It may change how the whitespace appears, but it does not directly set column spacing. Select Edit on the page, open Edit section, and try another available layout.
Is custom CSS a supported way to reduce the gap?
Avoid unsupported CSS overrides of SharePoint page or Text web part styles in production. If precise spacing is required, consult a developer about an SPFx web part.
How can I request a built-in spacing or divider option?
Visit the Microsoft Feedback portal, search for an existing SharePoint request for a vertical divider or spacing control, and vote for it or submit feedback if needed.




