Microsoft Expression Web For Dummies

The Microsoft development team managed to make the Expression Web style tools relatively easy for beginners to use, yet flexible enough for more advanced users. Because Web designers like to work with styles differently, many of the style tools in Expression Web do the same thing by using slightly different techniques. As you get comfortable with using styles to format your page elements, you will most likely find your own favorite ways to do things with the Expression Web style tools.

In this section, we give you a brief overview of the different style tools and functions that we think are most useful. Some of them you were introduced to elsewhere. Others are tucked away, out of sight and ready to be called into service with a few clicks of the mouse.

REMEMBER 

If you need quick information about these style tools as you're working in Expression Web and don't have this book handy, remember that you can access the help system by choosing Help Microsoft Expression Web Designer Help or pressing the F1 key.

Apply Styles task pane

The Apply Styles task pane (shown in Figure 7-8; choose Task Panes Apply Styles) shows you all the style rules that are working in the open Web page, including inline styles, internal style rules embedded in the page, and style rules that live in any external style sheets attached to the page.

Figure 7-8: The Apply Styles task pane.

REMEMBER 

Because the styles appear in the list dressed in their formatting, the Apply Styles task pane is most useful for working closely with particular styles: creating new styles, modifying existing styles, and applying styles to page elements. Table 7-1 describes what the colored dots next to the style rules mean.

Table 7-1: Spotting the Dots in the Apply Styles Task Pane

Open table as spreadsheet

Dot

What It Indicates

Green

A class-based style rule

Blue

An element-based style rule

Red

An ID-based style rule

Yellow

An inline style rule

Circled dot

A style rule applied to at least one element in the open page

Here are some tips for using the Apply Styles task pane:

Manage Styles task pane

Like the Apply Styles task pane, the Manage Styles task pane reveals the styles operating in the page. You display this task pane, shown in Figure 7-9, by clicking the Manage Styles tab or by choosing Task Panes Manage Styles.

Figure 7-9: The Manage Styles task pane.

The styles appear only by name (although a preview of the selected style appears at the bottom of the task pane). Using this pane, you can apply styles in the CSS Styles list, create new styles, and modify existing ones. You can also attach an external style sheet.

Here are some tips for using the Manage Styles task pane:

CSS Properties task pane

The CSS Properties task pane, shown in Figure 7-10, packs a lot of information into a small piece of screen real estate. By default, the CSS Properties task pane hangs out in the lower-left corner, behind the Tag Properties task pane. (If you don't see it, choose Task Panes CSS Properties or Format CSS Properties).

Figure 7-10: The CSS Properties task pane.

The CSS Properties task pane can be a little intimidating at first, but after you get more comfortable working with styles, it's useful for viewing which style rules affect a particular element and how they interact with each other. If you're well versed in CSS, you may find that it's also a quick way to add or change style properties without having to use the Modify Style dialog box.

Here are some tips for using the CSS Properties task pane:

Style toolbar

The Style toolbar, shown in Figure 7-12, performs some of the same tricks as the Apply Styles task pane, such as applying existing class or ID-based style rules to selected page elements, creating new styles, and attaching an external style sheet. To open the Style toolbar, choose View Toolbars Style.

Figure 7-12: The Style toolbar.

One useful function of the Style toolbar, however, is the ability to add a new class or id attribute to a selected page element. Adding a new class or id attribute from the Style toolbar doesn't create a matching style rule, so you have to create the style rule yourself.

Here are some tasks for which the Style toolbar comes in handy:

TECHNICAL STUFF 

You can also assign, change, or delete an element's class or id value by selecting the element and typing the value in the Tag Properties task pane, next to the attribute (class or id). If necessary, choose Task Panes Tag Properties to display the Tag Properties task pane.

Style Application toolbar

The Style Application toolbar, shown in Figure 7-13, is most useful after you're experienced enough with CSS to decide for yourself how you want your style rules written each time you format something on your Web page. We assume that working with raw CSS isn't at the top of your list, so for this feature we pass the buck to the Expression Web Help system. (To access Help, choose Help Expression Web Help or press F1.) To display the Style Application toolbar, choose View Toolbars Style Application or double-click Style Application: Auto in the lower-right portion of the status bar.

Figure 7-13: The Style Application toolbar.

Tip 

If you plan on using Expression Web in manual-style writing mode, dock the Style Application toolbar at the top of the workspace window so that its options are accessible but not in the way.

Категории