Sworios Sworios - 1 year ago 140
CSS Question

Sharepoint 2013 center title of list

I created a list in Sharepoint but I can not center the title of my columns . For cell contents I added a component with a change in the CSS:

td
{
text-align:center;
}


How do the column headings ?

Answer Source

Select the header and apply a text-align:center;:

.ms-listviewtable tr.ms-viewheadertr th {
    text-align:center;
}

Or just center all headers:

th {
   text-align:center;
}
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download