Others

Fix Stretched SharePoint Logo in Compact or Standard Header Layouts

Maira MehtabMaira Mehtab Oct 9, 2026 868 views

Question details

The user needs to fix an issue where the SharePoint site logo appears stretched out of proportion when using the Compact or Standard header layouts.

Fix Stretched SharePoint Logo in Compact or Standard Header Layouts
Product
SharePoint
Device & OS
not provided
Scenario
Customizing the site header layout and uploading a site logo.
Observed behavior
The uploaded site logo renders stretched in Compact and Standard layouts, but displays correctly in Minimal and Extended layouts across multiple devices and networks.
Before you start

Ensure you have Site Owner permissions to modify header settings, or Microsoft 365 Administrator access if you need to escalate the issue to a support ticket.

Solution 1Recommended

Troubleshoot Logo Dimensions and Display Settings

Rule out local browser caching, image file issues, or layout rendering glitches before escalating the issue.

SharePoint dynamically scales images based on the chosen header layout. If the image's original aspect ratio severely conflicts with the Compact or Standard header container constraints, it may stretch. Testing different variables helps isolate whether it is a file issue or a platform bug.

1
Verify logo dimensions

Check the aspect ratio and resolution of your uploaded image. SharePoint generally works best with square logos (e.g., 64x64 pixels) for standard headers.

2
Test an alternative image

Go to Settings > Change the look > Header, and upload a completely different logo temporarily. Save the changes to see if the new image also stretches.

3
Clear browser cache

View the SharePoint site in an incognito or private browsing window, or try a different web browser to ensure you are not seeing a cached version of the stretched logo.

4
Toggle the header layout

In the Header settings pane, click through Minimal, Extended, Compact, and Standard layouts. Click Save after selecting a different layout, then revert back to Standard or Compact to force a rendering refresh.

Troubleshoot Logo Dimensions and Display Settings
Free Microsoft Office alternative

Looking for a Hassle-Free Office Suite? Try WPS Office

While resolving Microsoft 365 and SharePoint rendering glitches can take time, managing your daily documents shouldn't be a struggle. WPS Office is a fast, highly compatible, and free alternative to Microsoft Office that streamlines your productivity workflow.

  1. 1. Download the software: Visit the official WPS Office website and click the free download button for your operating system.
  2. 2. Install WPS Office: Open the downloaded installer file and follow the quick on-screen prompts to set up the software.
  3. 3. Open your files: Launch WPS Office to instantly open, edit, and save your existing Microsoft Office documents with perfect formatting preservation.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx)Lightweight application that requires minimal system resources and installs in secondsFamiliar, tabbed user interface allows for a seamless migration without a steep learning curveBuilt-in PDF editing tools combined with traditional document processing
microsoft office alternative - wps office

Frequently Asked Questions

What are the recommended logo dimensions for SharePoint headers?

SharePoint generally recommends using a square image (such as 64x64 pixels) for Compact and Standard headers. For Extended headers, a rectangular image with a transparent background is often preferred. Keeping the file size under 10MB is also required.

Why does the SharePoint logo only stretch in certain layouts?

Different header layouts apply different CSS constraints to the image container. Compact and Standard layouts have specific height restrictions that might conflict with an image's natural aspect ratio, forcing it to stretch to fill the container if there is a rendering bug in the platform.

Can I use custom CSS to fix the stretched logo in SharePoint Online?

Modern SharePoint Online restricts custom CSS injection on standard communication and team sites to ensure responsive design stability. If the out-of-the-box layout settings stretch the logo, it must be resolved through layout toggling, image resizing, or an official Microsoft support ticket.