6.2. CSS in SharePoint

Building a brand and a good functional user interface facilitates attracting users to your site. CSS is a great way to brand SharePoint, in addition to other technologies. The power of CSS should not be taken lightly because it is a major component used for branding SharePoint. SharePoint Themes (chapter 7) as well as Master Pages (chapter 8) rely on style sheets to format fonts and tables, declare color schemes, change backgrounds, insert images, and more.

When a custom user interface is required (fonts, colors, images, and so forth) but the guts of the site do not need to be restructured, using style sheets alone and/or within Themes works just fine. If you do need to significantly change the look and feel of the page and the placement of components on the page, then you may require a new Master Page that would in turn point to one or more style sheets. In other words, when you are working with new Master Pages, you are styling your newly created classes and components within that Master Page. When you are working with just style sheets or SharePoint Themes, you are overriding the existing classes that come as part of SharePoint.

6.2.1. Preexisting CSS Files in SharePoint Server

SharePoint Server comes with quite a lot of CSS files. There are 26 files altogether. Yes, 26 of them! (WSS only deployments have a smaller number of files.) Now don't be alarmed, because many of the modifications you make do not include modifying most of these files. Usually, ...

Get Professional Microsoft® SharePoint® Designer 2007 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.