SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My column header needs to be quite long, but the content of the column is only a few pixels wide, so loads of white space and horizontal scrolling required to see the rest of the content.

Any ideas?

share|improve this question
up vote 6 down vote accepted

You can use SharePoint Designer to edit the AllItems.aspx view on this list. Insert this style inside the content place holder:

<style type= "text/css"> 
  .ms-vh2 {white-space: normal} 

This will override the style for the column headers which is set to white-space: nowrap

share|improve this answer
If you can't or dont want to use SPD you can also put this in a Content Editor Web Part (CEWP) using the HTML Source option. – Ryan Jun 6 '11 at 11:26
Thanks Laurie that helps – Clare Jun 6 '11 at 11:55
I've added a few lines of CSS to make it work in 2007/2010 and with non-filterable columns… – Ryan Jun 23 '11 at 17:15

There is also a way to wrap the columns individually using JavaScript by removing the nowrap attribute from the column header.

See Wrap ListViewWebPart Column Headers for more info (shameless link to my blog).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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