Microsoft KB Archive/826800

= The Web page is not updated after you update a cascading style sheet (.css file) on your portal site in SharePoint Portal Server 2003 =

Article ID: 826800

Article Last Modified on 5/31/2007

-

APPLIES TO


 * Microsoft Office SharePoint Portal Server 2003

-





SYMPTOMS
In SharePoint Portal Server 2003 when you view a Web page on the portal site after you update a cascading style sheet (.css file) on the portal, the Web page is not updated with the style elements that are defined in the new cascading style sheet. The Web page still uses style elements from the cascading style sheet that was previously used for the portal site.



CAUSE
This problem occurs if both of the following conditions are true:
 * The cascading style sheet that was previously used for the portal site is cached by your Web browser.
 * You do not refresh the Web page after the cascading style sheet is updated on the portal.

The cascading style sheet that is sent to the Web browser from the server is cached for 30 days. As a result, the updated cascading style sheet is not displayed in your Web browser if the cached copy of the cascading style sheet is not refreshed before the expiration date.



WORKAROUND
To work around this problem, do either of the following:
 * Press F5 to refresh the Web page. After you do so, the Web page is updated with the styles that are defined in the new cascading style sheet.
 * Empty the contents of the Temporary Internet Files folder on the client computer. To do so in Microsoft Internet Explorer, follow these steps:
 * Start Internet Explorer (if it is not already started).
 * On the Tools menu, click Internet Options.
 * Click the General tab.
 * Under Temporary Internet Files, click Delete Files.
 * Click OK when you are prompted to confirm the deletion, and then click OK.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
To avoid the problem that is described earlier in the &quot;Symptoms&quot; section of this article and update a cascading style sheet so that it is refreshed on the client Web browser, follow these steps:  In a text editor or in an HTML editor, create a new .css file. Update the styles that you want in the .css file, and then save the file by using a name that is not already used by another .css file on the server.

For better performance and to make sure that all users have access to the file, you may want to save the file to the same folder that contains the Sps.css file. By default, the Sps.css file is located in the following folder:



 Configure the portal site to the use the custom .css file. To do so, follow these steps:  On the home page of your portal site, click Site Settings. On the Site Setting page, under General Settings, click Change portal site properties and SharePoint site creation settings.</li> On the Change Portal Site Properties and SharePoint Site Creation Settings page, in the Custom Cascading Style Sheet area, type the path of the .css file that you created earlier in step 2 in the Location of cascading style sheet file box.

Note If the file location is a local relative path (for example, /_layouts/1033/MyStyleSheet.css), you must copy the cascading style sheet file to that location on each front-end Web server. For better performance, you may want to copy the file to the _layouts folder on each front-end Web server.</li></ol> </li></ol>

For more information about how to deploy, configure, and manage SharePoint Portal Server, see the Microsoft Office SharePoint Portal Server 2003 Administration Guide. The Microsoft Office SharePoint Portal Server 2003 Administration Guide (Administrator's Help.chm) is located in the Docs folder in the root of the SharePoint Portal Server 2003 CD.

For more information about SharePoint Portal Server, visit the following Microsoft Web site:

http://office.microsoft.com/en-us/sharepointserver/FX101494611033.aspx

Keywords: kbwebbrowser kbupdateissue kbupdate kbnofix kbbug KB826800

-

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

© Microsoft Corporation. All rights reserved.