I have a requirement to make the background of a column in a SharePoint list colored (e.g. green).

I have seen posts on CSR, JSLink, Conditional Formatting, etc. & all of these articles target list items, and individual list data but not full column background color.

Is there a way to color a full column background?

1 Answer 1


Easiest is to hard code the columnnumber in CSS:

.ms-listviewtable thead tr th:nth-child(5),
.ms-listviewtable tbody tr td:nth-child(5){

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.