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 Format

Style sheets include rules, which define styles for elements in web pages. Each rule comprises a selector and declaration. In turn, declarations include CSS properties and values. For example

Body {Background-color: #fff;Color: #000;}

Where:

Body is the selector.

• The declaration is defined within the curly braces.

Background-color and Color are CSS properties.

#fff and #000 are property values.

An example of a custom style looks like the following:

.footer {Color: #000;Font-weight: bold;}

Application of the same custom style in a web page looks like the following:

. . .DIV class="footer" . . .

Descendent Selectors

When you work with style sheets, including SharePoint 2010 style sheets, you encounter selectors that include a ...

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