How to center Yes/No text in SH2013 task list?

Annie Tang 1 Reputation point
2021-05-09T17:24:30.917+00:00

Hi,

'Yes/No' column currently presents the text on the left. How to move the text to the center of the cell? Your assistance will be greatly appreciated.

Thank you,
Annie Tang

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MichaelHan-MSFT 18,126 Reputation points
    2021-05-10T04:10:02.697+00:00

    Hello,

    You could add css style to make the text center, below is my demo code for you:

    <style type="text/css">  
    .ms-vb2{  
     text-align:center  
    }  
    </style>  
    

    Here is a similar issue for your reference: https://social.technet.microsoft.com/Forums/sharepoint/en-US/21b5da68-1ed9-469b-bc1b-371057af1a07/sharepoint-online-how-to-center-the-text-of-a-specific-column-of-the-list-view?forum=SP2016


    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.