Forum Discussion

Tammy Bruns's avatar
Tammy Bruns
Copper Contributor
Nov 11, 2019

Column Width in Sharepoint List

I have a modern site that has a column for state which is abbreviated i.e. IL, MT, FL but I cannot get the column width to decrease. I am using Sharepoint Online. Can anyone help me with decreasing the size of the column? Thank you!

    • Chloe1045's avatar
      Chloe1045
      Copper Contributor
      Has there been any progress since you posted? Seems like an absurd issue to have haha
    • Norman Young's avatar
      Norman Young
      MVP

      Hi Tammy Bruns,

       

      You can use JSON column formatting. You may want to decrease (rename) the column name width as well (manually). Example below:

       

      Sample JSON code:

      {
      "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
      "elmType": "div",
      "txtContent": "@currentField",
      "style": {
      "width": "50px"
      }
      }

       

      I hope this helps.

       

      Norm

      • Tammy Bruns's avatar
        Tammy Bruns
        Copper Contributor

        Norman Young Thank you but that does not allow me to move the column slider (Header) to decrease it. That does decrease the acutal column size but the the column visually stays the same. I would like to be able to move the slider (highlighted in picture) so that it decreases the column. Is there a JSON that would accomplish that?

         

  • LTJ88's avatar
    LTJ88
    Copper Contributor
    I have the same issue. did anyone solve this yet?

Resources