How to Fix SharePoint Web Parts Overlapping and Negative Margins
Question details
SharePoint modern pages display overlapping content and insufficient spacing beneath web parts when viewed in view mode.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- Viewing SharePoint modern pages containing dynamic web parts or custom CSS.
- Observed behavior
- Web parts lack proper bottom margins and overlap each other in view mode, though they display correctly in edit mode.
Before modifying any site styling, verify if the page relies on custom CSS web parts and ensure you have administrative or edit permissions for the SharePoint site.
Review and Adjust Custom CSS Classes
Identify and modify custom CSS rules that may be conflicting with recent SharePoint backend updates.
SharePoint occasionally pushes service-side styling updates that alter default padding and margins. If your site uses custom CSS to force empty margins, these backend changes can cause content to overlap in view mode.
Open the affected SharePoint modern page and click the Edit button in the top right corner.
Look for any Script Editor or Custom CSS web parts that apply specific styling to the page layout.
Search for CSS rules targeting specific control zones, such as .ControlZone--clean { margin: 0; padding: 0 !important; }.
Temporarily disable or remove these custom margin rules, save your changes, and republish the page to see if the overlapping is resolved.

Open a Support Ticket via Microsoft 365 Admin Center
Escalate the issue to Microsoft support if the overlapping is caused by an undocumented service-side update.
Enhance Your Document Workflow with WPS Office
While you wait for backend SharePoint issues to be resolved, ensure your local document workflow remains uninterrupted. WPS Office is a free, lightweight suite that serves as an excellent Microsoft Office alternative, providing full compatibility and a familiar interface without the hefty subscription fees.
- 1. Download the Installer: Visit the official WPS Office website and download the free installation package for your operating system.
- 2. Install WPS Office: Run the downloaded installer and follow the simple on-screen instructions to set up the software.
- 3. Open Your Documents: Launch WPS Office and directly open your existing Word, Excel, or PowerPoint files to continue working effortlessly.

Frequently Asked Questions
Why do SharePoint web parts overlap in view mode but look fine in edit mode?
Edit mode typically utilizes different container classes to enable drag-and-drop functionality, which naturally adds extra padding. View mode removes these specific containers, exposing underlying margin issues caused by recent styling changes.
Can I fix SharePoint overlapping margins permanently with custom CSS?
While custom CSS was previously a common workaround, undocumented backend changes by Microsoft can break these rules unexpectedly. It is generally safer to utilize default SharePoint layouts or wait for an official patch.
How do I report a SharePoint backend styling bug?
You must ask your organization's Microsoft 365 administrator to log into the Microsoft 365 admin center and open a formal support ticket so Microsoft engineers can investigate the service-side issue.




