Using CSS Reports

As with any other customization technique, you can make mistakes easily or produce a solution that is hard to maintain. This is where the SharePoint Designer CSS reports can help you. The CSS reports check one or more pages within your site, as well as produce a Usage report showing you where class, ID, and tag selectors are used and on what lines. These reports can help you find errors and identify styles that are defined but not used.

In this exercise, you will use the CSS Reports to validate the default.master page.

Note

USE the site you modified in the previous exercise.

OPEN the site in SharePoint Designer, if it isn’t already open.

  1. In the Folder List task pane, under masterpage (Master Pages), click default.master.

  2. On the Tools menu, click CSS Reports to open the CSS Reports dialog box.

    Using CSS Reports
  3. Verify that Selected pages is selected, as well as the three check boxes under Check for, and then click Check.

    The Check Reports task pane opens in the lower area of the document window, and lists a number of errors.

    Using CSS Reports
  4. In the CSS Reports task pane, double-click the first line to open default.master at the line where the style error occurred.

Note

CLOSE the SharePoint site and the CSS Reports task pane. If you’re not continuing directly to the next chapter, exit SharePoint Designer.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.134.88.228