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 ...
Get Microsoft® SharePoint® Designer 2010 Unleashed 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.