CSS Styles
The main CSS files are stored in this folder on the server:
| C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\LCID\STYLES |
These files are listed in Table B-8.
Table B-8. The main CSS files
File | Description |
|---|---|
CALENDAR.CSS | Controls calendar list view appearance |
CORE.CSS | Main style sheet used throughout SharePoint |
DATEPICKER.CSS | Controls the date picker control appearance |
HELP.CSS | Main style sheet used by Help pages |
MENU.CSS | Controls menu control appearance |
OWS.CSS | Legacy styles from WSS 2.0 |
OWSMAC.CSS | Legacy styles from WSS 2.0 |
OWSNOCR.CSS | Legacy styles from WSS 2.0 |
To view the style applied to an object in SharePoint:
Download the Style Viewer web part from this book's online samples.
Upload the Style Viewer web part to a page.
Mouse over the element to view. The Style Viewer displays the style of the element, as shown in Figure B-1.

Figure B-1. Using the Style Viewer web part to find a style
Working with CSS in SharePoint (or anywhere) can be tricky because you can't easily trace where the styles are overridden. For that reason, it is easiest to develop new CSS styles by working directly on the page through a Content Editor web part. To develop your styles:
Add a Content Editor web part to the page.
Add
styleelements to the Content Editor to override the built-in styles.Apply the changes from the Content Editor to preview their effect.
For example, the following ...