SharePoint 2016 List Header Word Wrap

NeddyFlanders 96 Reputation points
2021-08-12T17:26:39.967+00:00

Hello, I am able to Word Wrap all of a list's headers using CSS but I want to only wrap a single column's header. Does anybody know how to limit word wrap to just one column's header? Thanks.

Microsoft 365 and Office | SharePoint | Development
0 comments No comments
{count} votes

Answer accepted by question author
  1. Echo Du_MSFT 17,341 Reputation points
    2021-08-13T07:26:14.48+00:00

    Hello @NeddyFlanders ,

    You can use the following CSS code:

    <style>  
    .ms-vh-div[DisplayName='column dispaly name?']  
    {  
        white-space: normal;  
    }  
    </style>  
    

    122965-css.png

    123042-testa.png

    Thanks,
    Echo Du

    ===============================

    If an Answer is helpful, please click "Accept Answer" and upvote it.
    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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.