I received a request from one of my clients to put borders around each cell in a SharePoint list.  There were no out-of-box styles that I could use to fulfill this request.  I ended up using a simple script for it.

The standard list with some content without any styling:


I added a Script Editor Web Part the page with the following code:

<style type="text/css">
.ms-vb-imgFirstCell.ms-vb-imgFirstCell.ms-vb-imgFirstCell {
border-right-width: 1px;
table.ms-listviewtable > tbody > tr > td {
border: 1px solid black;
.ms-viewheadertr th {
border: 1px solid black;

The same list with borders: