Microsoft Expression Web

"You are such an engaging teacher. You made Expression Web and CSS make sense. I was about to give up until I found your videos. Thank you!"

-- Tim, Madison WI

Learn Expression Web fast with these videos

Expression Web 2 Essentials

Advanced Expression Web

Expression Web Essentials

Upgrade from Microsoft FrontPage to Expression Web

Get Started with these free Expression Web tips

Five ways to customize the interface in Expression Web

Change link colors and remove the underline

Create external style sheets to save time with CSS

Center div tags in a CSS layout with Expression Web

Create styles to align images

Add Meta descriptions for Search Engine Optimization

Create a rollover image with the Swap Image behavior

Make global updates with Dynamic Web Templates

Test web site accessibility

Test your web site before you publish in online

More Free Tutorials

Return to the Expression Web Training Center front page

Looking for Dreamweaver tutorials? Visit our Dreamweaver Training Center

Partners and sponsors

advertisement

Trusted by over 7 million customers!

.

 

Test Your CSS Before You Publish with Expression Web's CSS Reporting Features

Cascading Style Sheets offer a wide range of formatting and design options, but with them come almost as many chances to make mistakes. If you're worried about your CSS code, Expression Web's CSS Reporting features can help. To run a CSS Report in Expression Web:

What others say about Janine's videos

Order your Expression Web Video today

1. Choose Tools > CSS Reports.

Figure EW Tutorial 10-1.jpg

 

2. Under the Errors tab in the CSS Reports dialog, specify whether you want to check All pages, Open pages, Selected pages, or the Current page. If you choose selected pages, click to highlight the pages you want to check in the Folder List task pane. In this example, I've selected Current page to check only the page I have open in Expression Web.

Next click to check the box if you want to check for:

    Unused Styles: this option produces a list of class-based, id-based, and element-based styles that are defined in a CSS and not used in your web pages.

    Undefined Classes: this option lists class-based styles that are used in a web page but aren't defined in a CSS.

    Mismatched Case:  This option lists class-based and id-based styles that are defined with a case that is different than the case of a reference to that style. For example, if your style sheet defines a class that is named ".image-right" and a web page references ".Image-Right", this style will appear in the report.

Click Check to run the report and Expression Web will list any errors in the bottom of the page as shown in the image below.

Figure EW Tutorial 10-2.jpg

 

3. Next, you can run more reports by clicking on the Usage tab.

Again, specify which pages should be checked as you did in step b above.

Figure EW Tutorial 10-3.jpg

 

Under Check for, select any or all of the following:

    Class Selectors: this option generates a list of all of the class-based styles that are used on a page or site, any web pages that are using those styles, and the location of the style definition.

    ID Selectors: this option generates a list of ID-based styles that are used on a page or site, any web pages that are using those styles, and the location of the style definition.

    Element Selectors: this option generates a list of element styles that that are used on a page or site, any web pages that are using those styles, and the location of the style definition.

Click Check to run the report and the results will be displayed at the bottom of the page as shown in the figure below.

Figure EW Tutorial 10-4.jpg

 

Click on the name of any style to open the external style sheet or display the code section of the page where that style is defined. You can also use the blue arrows on the left to move through the styles, displaying each style in turn that is listed in the report.

Return to Tip 1 | Return to Expression Web main page

 

What others say about Janine's videos

Order Your Expression Web Training Video Today!