O'Reilly logo

Microsoft® SharePoint® Designer 2010 Unleashed by Kathy Hughes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CSS Classes in SharePoint 2010

CSS classes in SharePoint 2010 follow CSS standards, including styles of type ID-based, class-based, and element-based styles. The following shows you how SharePoint uses each type of style and provides examples.

ID-based styles

ID-based styles are prefixed by a # symbol. An ID-based style is unique and can only be applied to a page once. If you create duplicate IDs then the first instance of the ID on the page typically overrides subsequent duplicate entries. For instance, the v4.master page already contains an ID of s4-workspace. In you insert a new DIV element above the existing s4-workspace ID with the same ID then the content of the new ID overrides the default s4-workspace ID.

Examples of ID-based styles in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required