Set table width

2022-07-14T19:19:50.067+00:00

How do I control the width of columns and tables in modern SharePoint? I can't seem to find any controls for this.

SharePoint is so stunningly deficient in certain ways when it comes to page formatting that you'd think it's 1980, not 2022.

Azure Table Storage
Azure Table Storage
An Azure service that stores structured NoSQL data in the cloud.
156 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dillon Silzer 54,286 Reputation points
    2022-07-15T19:53:33.277+00:00

    The only way to edit css right now is to inject css (see https://www.sharepointdiary.com/2020/09/sharepoint-online-inject-custom-css-to-modern-sites.html)

    You can download https://github.com/hugoabernier/react-application-injectcss and upload it to your tenant's App catalog.

    Note: this will change the width of columns on all tables across your SharePoint sites if you were to use the example below to edit the table element:

    table {     
      table-layout: fixed;  
      width: 2000px;   
    }  
    

    --------------------

    If this is helpful, please mark as correct solution.

    0 comments No comments