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

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,598 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,797 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MichaelHan-MSFT 18,016 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.