Give your List Views a face lift

Whilst SharePoint’s OOTB default table style does the job, there’s room for improvement.  Fortunately with not much work you can easily add new styles, to get you started here’s the CSS and instructions to create the following:

Updated List View

Click Continue Reading for instructions and the CSS

Add the new style to your site

  1. Create a new CSS stylesheet within a document library in your site, then register it in your masterpage as shown here
  2. Copy and paste the following code into your CSS stylesheet:
 .ms-basictable {
 display: table;
 border-collapse: separate;
 border-spacing: 2px;
 border-color:
 gray;
 }
 .ms-basictable .ms-alternating {
 background-color: #EAF5FD;
 }
 .ms-rteTable-6AltRow{
 background-color:white !important;
 }
 .ms-basictable th {
 border: medium none!important;
 background-color: #DAEFFF;
 padding-right: 5px;
 text-align: left;
 letter-spacing: normal;
 font-weight: 500;
 font-size: 12pt;
 padding: 5px 12px 5px 12px !important;
 background-image:none;
 color: #6D6F72 !important;
 }
 .ms-basictable td {
 font-size:8pt;
 }
 .ms-basictable th a:link {
 color: #6D6F72;
 text-align: left;
 letter-spacing: normal;
 font-weight: 500;
 font-size: 12pt;
 }
 .ms-basictable td {
 font-size:8pt;
 padding-left: 12px !important;
 padding-right: 12px;
 padding-top:4px;
 padding-bottom:4px;</code>

}

Selecting your new list view style

  1. Within any List or XSLTListViewWebPart, choose Modify View
  2. In the Style section, choose the Shaded view style
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s