Skip to main content

How to Centre Page Content in a Modern SharePoint Online Team Site

When working with modern SharePoint Online pages, you may notice differences in how content is positioned between communication sites and team sites.

In my experience, modern pages in communication sites generally presented their content centrally, with white space on both sides. However, pages in a Microsoft 365 group-connected team site appeared left-aligned, leaving considerable unused space on the right.

Fortunately, SharePoint provides a setting that can help address this layout preference.

The problem: Left-aligned page content

When creating or editing modern pages in a SharePoint Online team site, the content may appear positioned towards the left side of the available page area.

Depending on the page design and screen resolution, this can make the layout look unbalanced.

The objective is to centre the page content without introducing custom CSS, JavaScript or an SPFx extension.


How to change the content alignment

In the SharePoint Online interface available when I originally documented this solution in September 2023, the following steps were used:

1. Open the SharePoint Online team site.

2. Select the Settings (gear) icon.

3. Open Change the look.

4. Select Navigation.

5. Locate the option relating to site layout or content alignment, as shown in the original screenshots.

6. Apply the relevant setting and save your changes.


Once the change has been applied, return to the page and check how the content is displayed.


Things to consider

Site experience: The setting was observed in the SharePoint Online experience available at the time of the original article. Microsoft regularly updates the SharePoint interface, so the location or availability of this option may differ.

Permissions: Changing site appearance settings generally requires appropriate site management permissions.

Responsive layout: Content positioning can look different on desktop, tablet and mobile screens. Check the result at more than one screen width.

Site-wide impact: Before changing an appearance setting, consider whether it affects other pages or navigation elements in the site.

Why use the built-in setting?

Where supported, a native SharePoint configuration option is preferable to adding custom styling solely to adjust page alignment.

It avoids introducing additional code that may require maintenance when Microsoft updates the SharePoint user interface.

Conclusion

If modern page content appears unnecessarily left-aligned in a SharePoint Online team site, review the available site appearance settings before considering custom development.

This was a straightforward configuration-based solution in the environment where I originally encountered the issue.

Originally published in September 2023. The screenshots document the interface available at that time. The exact setting and its availability should be verified against your current SharePoint Online experience.



Comments

Popular posts from this blog

SharePoint Designer Workflow Failed to Start - Cancelled by System Account

I was working on a List workflow the other day in SharePoint Designer 2010. This list already had a workflow which was working perfectly fine and I needed another manual workflow in it. No matter what I tried the workflow would fail and would log a message in the history list that Workflow failed to start and it was cancelled by System Account . I observed that the same happened with new workflows in that list, new workflows in other lists and I even tried creating new subsites and workflows were behaving the same way. I googled for a while and there were many suggestions to clear SPD cache which did not help me. I played with SPD 2010 for a while and observed that the workflow xml and xoml files were checked out. I read in some blogs that this could cause this issue as well. I tried to check those files in but then I was greeted with a new error! " Cannot perform this operation. The file is no longer checked out or has been deleted ." I had no clue what was happening...

Difference between the architectures of SSPs and SharePoint Service Application

SharePoint 2010 has some new features and components, which help to overcome difficulties such as redundancy and service-sharing that we faced while using SharePoint 2007.  Services in MOSS 2007 were implemented with the help of Shared Service Providers or SSPs. But we cannot use the services of one SSP for another SSP. So each SSP has to have its own set of services and applications, which increases redundant data in the farm.  For example, different managers in the same organization use a SharePoint site to maintain official data associated with an SSP. This SSP is associated with different services, such as Search service, BDC service, and a user profile service. A project manager in this organization requests an exclusive user profile service to maintain project data security. To provide this, we first need to create a separate SSP for the project manager and then a separate service called user profile service - project name. Next, we need to associate the SSP with ...

Document Property disabled under Quick Parts in Word 2010

Document Property under Quick Parts sometimes appears grayed out or disabled in Word client and we can see that Compatibility mode written on the Word client on the top part. This happens because Word disables certain features to make our document compatible with previous versions of Office. To workaround we have to change the compatibility feature. To do that click File on the Word ribbon and select Info. Click on Convert button and click OK on the pop up message. This enables the disabled features and now we can access the Document Properties under Quick Part.