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...
Practical insights into Microsoft 365 architecture, SharePoint Online, PowerShell automation, governance and security. Real world troubleshooting, technical solutions and lessons learned from enterprise IT environments.