Others

Reduce Column Spacing on SharePoint Modern Pages

Huma Ashraf ChHuma Ashraf Ch Nov 14, 2026 869 views

Question details

Find a supported way to reduce whitespace between text columns on a SharePoint Online modern page.

Reduce Column Spacing on SharePoint Modern Pages
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.
Before you start

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.

Solution 1Recommended

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.

1
Define the layout

On the modern page, select Edit and identify the text and columns you want the custom web part to replace.

2
Build and deploy the web part

Ask a SharePoint developer to create an SPFx web part with the required column spacing and arrange deployment through your organization's app catalog.

3
Add it to the page

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.

Use a custom SharePoint Framework web part
Avoid unsupported CSS: Do not rely on unsupported custom CSS that overrides SharePoint page or Text web part styles in production. An SPFx solution may require administrator approval.
Free Microsoft Office alternative

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.

Create and adjust columns in documents with WPS WriterOpen and edit Microsoft Word DOCX filesWork in a familiar interface when moving from Microsoft OfficeUse a free, lightweight office suite for everyday documents
microsoft office alternative - wps office

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.