Cascading Style Sheets

CSS is the method used to centrally manage all of the style attributes in SharePoint. There are many benefits to using CSS. One of these benefits is that instead of adding inline style properties to elements within the HTML, you can link off to external CSS files. Another benefit is if you need to make global changes to all sites and pages, you can simply edit the styles of the CSS and it automatically updates all areas where that CSS file is referenced and the class or ID is used. For example, if you remove all CSS references in SharePoint, then the site branding is stripped down to just text and icons, as shown in Figure 1-2.

Figure 1-2. SharePoint 2010 with no style sheets applied

Within the HTML of your content ...

Get Practical SharePoint 2010 Branding and Customization 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.