How to wrap the text for a list column in MS SharePoint website?

Anonymous
2019-10-07T22:19:17+00:00

Hello, I am using MS SharePoint website. I created a column of 'multiple line of text'. I want to wrap the text for this column so that I can constrain the size of that column. 

I followed instructions mentioned on https://answers.microsoft.com/en-us/msoffice/forum/all/new-sharepoint-layout-columns-and-wrapping-text/601ed8ac-7096-42f1-a8f3-5d99fcb4e181 but they don't work for me. Please advise on how I can wrap the text for a column.

Microsoft 365 and Office | SharePoint | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Anonymous
    2019-11-02T22:57:25+00:00

    Dear Rahul,

    It seems that you can’t use the modern SharePoint experience in your environment. For the requirement, you may need to add the CSS code in the Script Editor web part on your site page. I find a code which may be applied to your environment for your reference.

    You need to first click on Edit page to see whether you can add the Script Editor web part. If no, you may need to contact your administrator and follow the steps in the article to enable custom script in SharePoint Online Management Shell first.

     

    After running the command, refresh the page and you should be able to add the web part. Then insert the following code in the web part to see the result.

    <style type="text/css">

    .ms-vb2 .ms-rtestate-field {

    max-width: 100px;

    max-height: 380px;

    overflow: hidden;

    }

    .ms-vb2 .ms-rtestate-field:hover {

    max-height: none;

    }

    </style>

    <h2>

    </h2>

    Before:

     

    After:

     

    Best Regards,

    Cliff

    1 person found this answer helpful.
    0 comments No comments

17 additional answers

Sort by: Most helpful
  1. Anonymous
    2019-11-05T07:32:25+00:00

    Dear Rahul,

    Welcome to share any updates when you have time if you need further help on this issue.

    Best Regards,

    Cliff

    1 person found this answer helpful.
    0 comments No comments