I am using SharePoint Online. I have a list created by importing an Excel spreadsheet. Some of the column names are long which is creating a lot of horizontal scrolling. I want to word-wrap the column names to save space. I found an article saying you could add the CSS below to a CEWP in the list, but nothing happens when i try that.
<style type= "text/css"> .ms-formlabel { width: 400px; } .ms-formlabel nobr { white-space: normal; } </style>
Does anyone know why that would not work or what I may be doing wrong? I tried adding it into the allitems.aspx code in SP Designer as well, but i was not sure exactly where to insert it, and the one place i tried it gave me an error.
Thanks in advance