Skip to Main Content
Essential SharePoint 2007, 2nd Edition
book

Essential SharePoint 2007, 2nd Edition

by Jeff Webb
September 2007
Beginner content levelBeginner
448 pages
10h 2m
English
O'Reilly Media, Inc.
Content preview from Essential SharePoint 2007, 2nd Edition

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:

  1. Download the Style Viewer web part from this book's online samples.

  2. Upload the Style Viewer web part to a page.

  3. Mouse over the element to view. The Style Viewer displays the style of the element, as shown in Figure B-1.

Using the Style Viewer web part to find a style

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:

  1. Add a Content Editor web part to the page.

  2. Add style elements to the Content Editor to override the built-in styles.

  3. Apply the changes from the Content Editor to preview their effect.

For example, the following ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Office SharePoint® Server 2007 Best Practices

Microsoft® Office SharePoint® Server 2007 Best Practices

Ben Curry, Bill English
SharePoint 2007: The Definitive Guide

SharePoint 2007: The Definitive Guide

James Pyles, Christopher M. Buechler, Bob Fox, Murray Gordon, Michael Lotter, Jason Medero, Nilesh Mehta, Joris Poelmans, Christopher Pragash, Piotr Prussak, Christopher J. Regan

Publisher Resources

ISBN: 9780596514075Errata Page