Wednesday, August 22, 2012

How to word wrap the column headers in a SharePoint List

I always get asked how to save space in a SharePoint list where the data in a column is much smaller than the name of the column.  Until I found this I would abbreviate the column to the point where you'd need a key in order to figure out what it meant.

Add a content editor web part to your page that includes the code.

<style type= "text/css">
.ms-vh, .ms-vh2-nograd, .ms-vh2, .ms-vb
{white-space: normal}
</style>
Hide that content editor web part and voila, you've saved a bunch of room with very little effort.  

Thanks to Pentalogic for the original article.

No comments:

Post a Comment