Article Categories
Archives
Post Categories
  Jump to Information for:
Search:  
By replacing a small handful of image files you can change the background look of the web part title bar and toolbar for portals and WSS sites.

First, design your new titlebar/toolbar, you will need it in two different heights, and replace the images files on the server with your modified files using the same file names. The images are used as a repeating background, so the width of the image can be very small. If you want light text on a dark background, you will have to additionally modify the CSS files to change the text color.

The image files are located here: \60\TEMPLATE\IMAGES

Web Part Title Bar and Toolbar Images

Portal or WSSImage NameFunctionRelated CSS ClassImage Height
Bothpartgrad.gifWeb part title bar background.ms-WPHeader17 pixels
WSStoolgrad.gifBackground of toolbar on list and document library pagestable.ms-toolbar
.UserToolbar
22 pixels
Portaltoolgradp.gifBackground of toolbar on list and document library pagestable.ms-toolbar
.UserToolbar
22 pixels

For light or white text on a dark background web part title bar and/or toolbar, modify the following CSS classes. You can either edit the SharePoint CSS files or override them with your own specified CSS file.

Web Part Title Bar and Toolbar Text CSS Classes

Portal or WSSClass NameFunctionCSS File
Both.ms-WPTitleHeader text in a web part title barOWS.css
Both.ms-toolbarToolbar on expanded view of a web part with Actions (Add New, Delete, etc.)OWS.css

If you are editing a custom created style sheet, copy these classes from \60\TEMPLATE\LAYOUTS\1033\STYLES\OWS.css:

  1. .ms-WPTitle {font-weight: bold; font-family: verdana, arial, helvetica, sans-serif; color: #003399; padding-left: 6px; padding-right: 7px; padding-top: 2px; padding-bottom: 2px; font-size: 8pt; }
  2. .ms-WPTitle A:link, .ms-WPTitle A:visited { color:#003399; text-decoration:none; cursor:hand; }
  3. .ms-WPTitle A:hover { color:red; text-decoration:underline; cursor:hand; }
  4. .ms-toolbar { font-family: verdana; font-size: .68em; text-decoration: none; color: #003399; }

Paste the classes into your custom style sheet. Change the font attributes to meet your needs.

Add any additional attributes that you need, but RETAIN ALL THE ORIGINAL ATTRIBUTES. They can be modified to suit your needs, but do not delete the attribute. Your custom style sheet will only override class attributes located in the SharePoint CSS files-- it will not replace the entire class. So if the copied class in your custom style sheet specifies a font size and you remove that attribute, the site will still use the OWS.css specified font size.

posted on Thursday, May 19, 2005 6:53 PM
Comments
  • # A Quick Way To Change The Look Of The Web Part Title Bars For Your Sharepoint Environment
    Andrew Connell [MVP MCMS]
    Posted @ 5/20/2005 5:55 AM
  • # re: A Quick Way To Change The Look Of The Web Part Title Bars For Your Sharepoint Environment
    Bil Simser
    Posted @ 5/20/2005 11:07 AM
    Good stuff. With modifications like this, I always suggest:

    a) use your own image files with unique names
    b) create your own stylesheet to overrride the SharePoint ones rather than replacing the existing ones in SPS.CSS or OWS.CSS

    Upgrades and supportability will be better this way.
  • # Area template customizing
    Outlook by the sound
    Posted @ 8/1/2005 10:25 AM
  • # An Into and Overview of Options for SharePoint User Interface Customization
    Heather Solomon - MVP, WSS - Blo
    Posted @ 1/10/2006 1:13 PM
  • # SharePoint Design How-To Articles
    Heather Solomon - MVP, WSS - Blo
    Posted @ 3/23/2006 1:15 PM
  • # A Quick Way To Change The Look Of The Web Part Title Bars For Your Sharepoint Environment
    Heather Solomon's Blog - Design,
    Posted @ 5/19/2005 7:55 PM
  • # A Quick Way To Change The Look Of The Web Part Title Bars For Your Sharepoint Environment
    Heather Solomon's Blog - Design,
    Posted @ 10/3/2005 7:55 PM
  • # An Into and Overview of Options for SharePoint User Interface Customization
    Heather Solomon - MVP, WSS - Blo
    Posted @ 3/27/2006 11:18 AM
  • # An Into and Overview of Options for SharePoint User Interface Customization
    Heather Solomon - MVP, WSS - Blo
    Posted @ 1/10/2006 1:12 PM
  •  re: A Quick Way To Change The Look Of The Web Part Title Bars For Your Sharepoint Environment
    steve
    Posted @ 3/8/2007 2:57 PM
    What if I need to modify only one webpart?
  •  re: A Quick Way To Change The Look Of The Web Part Title Bars For Your Sharepoint Environment
    Yang
    Posted @ 8/4/2007 9:42 AM
    I have the same question, is there a way to only customize a single web part's title bar without affecting others?

    Thanks,
  •  re: A Quick Way To Change The Look Of The Web Part Title Bars For Your Sharepoint Environment
    Attila
    Posted @ 9/4/2007 7:15 AM
    Yes you can if you create own method in css.
    for example #onlyoneWebpart
    {
    color:#ffff;
    etc.....
    }
  •  What about rounded corners?
    Deb
    Posted @ 10/22/2007 8:48 AM
    How do I add rounded corners to a web part title?
  •  re: A Quick Way To Change The Look Of The Web Part Title Bars For Your Sharepoint Environment
    ikram wafi
    Posted @ 1/2/2008 8:48 PM
    How can I change the list heading columns like 'Title' , 'Type' to be grayed out if there are no line items in the list and also gray out the text 'There are no items...'
  •  re: A Quick Way To Change The Look Of The Web Part Title Bars For Your Sharepoint Environment
    Osama
    Posted @ 2/14/2008 1:03 AM
    how we can change the toolbar from " Save and Close" to anather word?
  •  re: A Quick Way To Change The Look Of The Web Part Title Bars For Your Sharepoint Environment
    Simon
    Posted @ 5/7/2008 1:14 PM
    Is it possible to remove the arrow on the right hand side of the web part title? At the moment the only option I have on the drop down is 'help' - which is not that useful as it brings up a standard sharepoint help file. I would really like to know how to remove these to clean everything up!
  •  re: A Quick Way To Change The Look Of The Web Part Title Bars For Your Sharepoint Environment
    Sumant Deshbhratar
    Posted @ 5/15/2008 7:58 PM
    Hello,
    I had previously written to you about the header area of a webpart. I am still stuck on the same problem in which i need to create a border for the entire header but the header TD class creates two cells in the header area.
    also now the bottom border of the webpart is not visible. it has some how been lost and now the webpart has only three borders..two on the side and one on the top...no bottom border....please help!!!
    Thank you.
  •  re: A Quick Way To Change The Look Of The Web Part Title Bars For Your Sharepoint Environment
    Avanti
    Posted @ 5/19/2008 12:37 AM
    If we want to modify the title bar for only one web part, how can we do this using the CSS? Even if we create our own method class in the css file(i am guessing core.css here??), how can we map only that web part to use the particular class name present in the CSS file, without exporting the web part??
  •  re: A Quick Way To Change The Look Of The Web Part Title Bars For Your Sharepoint Environment
    The Big Dane
    Posted @ 6/30/2008 4:29 AM
    Hi There,

    Nice website. I have a problem I hope you can help me with. I want to change the fontcolor for the weppart header. I do that with the code: .ms-WPTitle in my -css sheet.

    But some of the haeders has not changed color. I has figured out, that it is the webparts ehere the header is a link. ie the webpart announcements.

    How to I change those font colors as well?
  •  re: A Quick Way To Change The Look Of The Web Part Title Bars For Your Sharepoint Environment
    jc
    Posted @ 9/23/2008 10:30 PM
    Will this affect all site collections under the Web application?
Title  
Name  
Email (never displayed)
Url
Comments   
ALL COMMENTS ARE MODERATED! Sorry for the inconvenience, but it is how I keep all of the spam and advertisers out. I moderate comments about once a week and your comment will appear soon. Thanks for posting!
Please add 4 and 3 and type the answer here:

Copyright © 2005-2008. Heather Solomon.
Site design by Heather Solomon

Blog Stats:
Posts - 375
Stories - 38
Comments - 1476
Trackbacks - 182