How to force a column size in the list web part on a modern sharepoint page

Vlach, Sandra M 20 Reputation points
2024-08-09T19:18:34.59+00:00

How to force a column size in the list web part on a modern sharepoint page. I added JSON to the column in the actual list and I can force the width but when I add the list to the modern SharePoint page using the list web part the column width does not appear in the correct width.

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,006 questions
0 comments No comments
{count} votes

Accepted answer
  1. Emily Du-MSFT 46,661 Reputation points Microsoft Vendor
    2024-08-12T03:05:41.1166667+00:00

    This is a known limitation of JSON formatting. You cannot widen the column by using JSON formatting in the SharePoint Online.

    To change the width of column in the list on a SharePoint modern page, you should grab the right edge of the column header then save the view.

    Reference:

    https://learn.microsoft.com/en-us/answers/questions/1388854/sharepoint-online-how-to-widen-width-of-column-wit


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.