How to Fix SharePoint JSON Card Height and Width Not Working
Question details
Users need to resolve an issue where SharePoint JSON card and tile formatting fails to apply configured height and width settings.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- Customizing SharePoint list views and galleries using JSON scripts for specific card dimensions.
- Observed behavior
- SharePoint stops honoring the height and width settings defined in the JSON, resulting in compressed cards and hidden information.
Verify that your JSON formatting code is syntactically correct and check if the issue occurs across multiple SharePoint lists or only in a specific view.
Check Microsoft 365 Service Health for Temporary Issues
Often, ignored JSON formatting dimensions are caused by backend updates in SharePoint Online and are resolved automatically by Microsoft.
If your JSON formatting was previously working and suddenly compressed the cards without any script changes, this is typically a temporary service degradation on Microsoft's end. In many reported cases, Microsoft fixes these backend compatibility bugs silently.
Reach out to your organization's Microsoft 365 IT administrator to verify if there are any active SharePoint Online service advisories.
Administrators can log into the Microsoft 365 Admin Center, navigate to 'Health', and select 'Service health' to look for ongoing SharePoint issues.
If a known service issue is identified, wait for Microsoft to deploy a fix. The formatting usually returns to normal without requiring changes to your JSON code.

Test JSON Formatting in an Alternate Environment
Use this solution to isolate the problem and determine if the issue is restricted to a specific list, site, or web browser.
Escalate to Microsoft Support and Developer Communities
Use this approach if the issue persists long-term and you need direct technical assistance or confirmation of a wider bug.
Enhance Your Productivity with WPS Office
While SharePoint is essential for cloud-based team collaboration and list management, having a reliable local suite for your daily document tasks is just as important. WPS Office provides a lightweight, fully compatible, and cost-effective alternative to Microsoft Office for creating, editing, and managing your Word, Excel, and PowerPoint files.
- 1. Download the Installer: Visit the official WPS Office website to download the free installation package for your operating system.
- 2. Install WPS Office: Run the downloaded setup file and follow the quick on-screen instructions to complete the installation.
- 3. Start Managing Documents: Launch WPS Office and immediately begin working with your standard Office file formats seamlessly.

Frequently Asked Questions
Why did my SharePoint JSON formatting suddenly stop working?
Sudden failures in custom JSON formatting are frequently caused by temporary backend updates or service degradations in SharePoint Online. In most instances, Microsoft resolves these compatibility issues automatically without requiring users to alter their code.
How do I format card dimensions in SharePoint JSON?
You can control the dimensions of a card or tile by properly defining the 'height' and 'width' properties within the 'style' object of your JSON view formatting code.
Where can I find help for complex SharePoint JSON scripts?
For advanced troubleshooting and advice, it is highly recommended to post your questions in the Microsoft Q&A forums using the 'SharePoint Development' tag or engage with experts in the official SharePoint Developer community.




