Microsoft KB Archive/293332

= How to modify the SharePoint Team Services style sheet template =

Article ID: 293332

Article Last Modified on 2/21/2007

-

APPLIES TO


 * Microsoft Windows SharePoint Services
 * Microsoft SharePoint Team Services

-



This article was previously published under Q293332



SUMMARY
This article describes how to alter the appearance of individual SharePoint sites or new SharePoint sites on a specific server by modifying the style sheet template, which is the Ows.css file.



MORE INFORMATION
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.

Code Samples
This article includes the following two examples:
 * The first example describes how to change the appearance of specific SharePoint sites. This procedure only affects those specific sites where you open the Ows.css file.
 * The second example describes how to change the appearance of sites that will be created on a specific server in the future. Using the procedure in the second example does not affect any sites that are already created.

WARNING: Microsoft does not recommend altering any documents contained in the _layouts folder of a SharePoint site; doing so can potentially destroy SharePoint Team Services and Windows SharePoint Services on that server. Always make a backup of your documents before you make any changes.

Example 1: Modify on a Site-by-Site Basis
 Start Microsoft Internet Explorer, and browse to the SharePoint site that you want to modify. On the File menu, click Edit with Microsoft FrontPage. When the site opens in Microsoft FrontPage 2002, click Web Settings on the Tools menu. Select the Advanced tab. Click to select the Show hidden files and folders check box, and then click OK. Click Yes when prompted to refresh the Web. Open the _layouts folder, and then open the Styles folder.</li> Create a backup copy of the Ows.css file.</li> Double-click Ows.css to open it in FrontPage.</li>  As an example only, search for &quot;5f8ac5&quot; (without the quotation marks). You should find this text within the following style code: .ms-main{ border-right: 50px solid #5f8ac5; }                   </li>  Modify the code so that it resembles the following: .ms-main{ border-right: 50px solid #999999; }                   </li> Save this page and then refresh the page in Internet Explorer.</li></ol>

In the preceding example, you changed the color of the right margin to gray. By changing colors and font in the Ows.css file, you can dramatically alter the styles that are applied to your SharePoint site.

Example 2: Modify the Style for All Future SharePoint Sites on One Server
<ol> Open the folder where the Ows.css file is located on the server. By default, the file is located in the following folder:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\50\Templates\1033\Styles

</li> Create a backup copy of Ows.css.</li> Double-click Ows.css to open it in FrontPage.</li>  As an example only, search for &quot;5f8ac5&quot; (without the quotation marks). You should find this text within the following style code: .ms-main{ border-right: 50px solid #5f8ac5; }                   </li>  Modify the code so that it resembles the following: .ms-main{ border-right: 50px solid #999999; }                   </li> Save and close the page.</li></ol>

The next time that you configure a site as a SharePoint site, the site will have a gray right border.

Additional query words: inf

Keywords: kbwebservices kbwebserver kbtemplate kbhowto KB293332

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.