
192
❘
CHAPTER 7 CASCADING STYLE SHEETS IN SHAREPOINT
view. As you scroll through the code, you should see several CSS class references. For example, at
approximately line 48, you will see a line of code starting with the following:
<div class=”ms-webpartpagedescription”>
The class name, ms-webpartpagedescription, is a hyperlink. Hold down the Ctrl button and click
the hyperlink to open a copy of
corev4.css in SPD that you can edit, as shown in Figure 7-2. You
will see the rules defi ned for this class starting near line 638.
FIGURE 7-2
Note that that there are references to other CSS fi les in the fi le you have open
in SharePoint Designer. Therefore, when the CSS fi le loads, make sure it is
corev4.css. Other CSS class hyperlinks could take you to fi les such as
wiki.css. Just make sure you are in the right fi le before proceeding. If you
wind up at another CSS fi le, simply close it and try another class reference.
584644c07.indd 192584644c07.indd 192 10/27/10 11:46:44 AM10/27/10 11:46:44 AM