Dreamweaver 8[c] The Missing Manual

1.2. The Dreamweaver 8 Interface

Dreamweaver's windows let you add and modify elements of a Web page. Macromedia refers to most of these windows as panels , and Dreamweaver has an almost overwhelming number of them.

Many of these windows are used to assist with specific tasks , like building style sheets, and are described in the relevant chapters. But you'll frequently interact with four main groups of windows: the document window, the Insert bar, the Property inspector, and panel groups.


Note: The look of these windows depends on what kind of computer you're using (Windows or Macintosh) and what changes you've made to the program's preference settings.Even so, the features and functions generally work identically no matter what your situation. In this book, where the program's operation differs dramatically in one operating system or the other, special boxes and illustrations (labeled "For Macs Only" or "For Windows Only") will let you know.

1.2.1. The Document Window

You build your Web pages in the document window . As in a word processor, you can simply click inside the document window and type to add text to the page. You'll work in this window as you build a page, and you'll open new document windows as you add or edit pages for your site.

Several other screen components provide useful information about your document. They may appear in different locations in Windows or on the Mac (see Figures 1-1 and 1-2), but they work the same. For example:


Tip: In Design view, clicking the <body> tag in the tag selector is usually the same as pressing Ctrl+A ( -A) or choosing Edit Select All: it selects everything in the document window. However, if youve clicked inside of a table (Chapter 7) or inside of a CSS-positioned element (sometimes called a layer [Chapter 8]), you'll select only the contents of a table cell or layer. In this case, you need to press Ctrl+A ( -A) several times to select everything on a page. However, after selecting everything this way, you can press the Delete key to instantly get rid of everything in your document.Careful, though. Pressing Ctrl+A ( -A) or choosing Edit Select All in Code view selects all the code. Deleting this gives you an empty fileand an invalid Web page.

1.2.2. The Insert Bar

If the document window is your canvas, the Insert bar holds your brushes and paints , as shown in Figure 1-3. While you can add text to a Web page simply by typing in the document window, adding elements like images, horizontal rules, forms, and multimedia elements is simplified by the click-to-add approach of the Insert bar. Want to put a picture on your Web page? Just click the Image icon.


Note: Adding elements to your Web page this way may feel like magic, but the Insert bar is really just a quick way to add code to a page, whether it's HTML, XHTML, JavaScript, or server-side code like Visual Basic (see Part Six of this book). Clicking the horizontal-rule icon, for instance, simply inserts the <hr> tag into the underlying HTML of your page. Of course, Dreamweaver's visual approach hides that messy code and cheerfully displays a gray horizontal bar on the page.

When you first start Dreamweaver, the Insert bar is open. If you ever close it by mistake, you can open it again by choosing Window Insert or by pressing Ctrl+F2 ( -F2). On the other hand, if space is at a premium on your screen, you can close the Insert bar and use the Insert menu instead. Its commands duplicate all the objects available from the Insert bar.

Eight different sets of objects are available from the Insert bar, each available from the pop-up menu at the left end (see Figure 1-3). Select a category from the menu to see the corresponding category of objects worth inserting:

1.2.3. The Property Inspector

After dropping in an image, table, or anything else from the Insert bar, you can use the Property inspector to fine-tune its appearance and attributes. Suppose, for example, that your boss has decided she wants her picture centered in the middle of the page. After highlighting her picture in the document window, you would then use the Property inspector to change its alignment.

The Property inspector (Figure 1-4) is a chameleon. It's aware of what you're working on in the document windowa table, an image, some textand displays the appropriate set of properties (that is, options). You'll use the Property inspector extensively in Dreamweaver.

Figure 1-4. If you don't see the Property inspector, you can reopen it by choosing Window Properties, or by pressing Ctrl+F3 ( -F3).

For now, though, here are two essential tips to get you started:

1.2.4. Panel Groups

So far, this chapter has described the Insert bar, Property inspector, and document windowbut those are just the beginning of Dreamweaver's windows. In Dreamweaver 8, most of the remaining windowscalled panels sit in tidy groups on the right edge of your screen.

For example, a panel group named Files harbors panels for working with your Web page files, Web site assets, and code snippets (see Figure 1-5).


Tip: To view the panels in a group, click the expander arrow or the panel group's name; to hide the panels, click the arrow (or name) again.
Figure 1-5. To open a panel, click the arrow next to the panel group name (Application or Files, for example). Clicking a tab brings the corresponding panel forward. Each panel group has its own Context menu icon (circled). Clicking the button reveals a shortcut menu that lets you work with features specific to that panel. This menu also offers generic panel actions, such as moving a panel to another group, creating a new panel group, renaming a group, or completely hiding a group of panels.

The various panels and their uses will come up in relevant sections of this book. But a few tips concerning Dreamweaver's panels are worth noting here:

1.2.5. Workspace Layouts

Dreamweaver 8 introduces a wonderful, time-saving productivity enhancer : Workspace Layouts. This feature lets you save the position and size of Dreamweaver's panels and windows as a "layout," which you can return to by simply selecting the layout's name from Window Workspace Layout. For example, when youre working on a database-driven Web site, you may like to have the Application and Code panel groups open, but close the Design panel group. When working on a design-heavy site, on the other hand, you may absolutely require the Design panel group to be open, but could care less about the Tag Inspector. You can create a different layout for each situation and then simply switch between them.

First, you should organize your workspace the way you want to work:

To save your layout, select Window Workspace Layout Save Current (see Figure 1-7.) The Save Workspace Layout dialog box appears; type the name for the layout and click OK. (If you type the same name as a layout youve already saved, Dreamweaver lets you know it and gives you the option to replace the old layout with this new layout. This is the only way to update a layout you've previously created.) Dreamweaver saves your new layout.


Tip: This feature is also handy if you share your computer with other people. You can create your own Workspace Layoutuse your own name when naming the layoutwith all the panels and windows exactly where you like them. Then, when you go to use the computer and the bozo before you has rearranged the entire workspace, just select your layout from the Window Workspace Layouts menu.
Workspace Layout The Name of Your Layout (see Figure 1-7). After a brief pause, Dreamweaver switches to the selected layout.
Figure 1-7. The Windows version of Dreamweaver (shown here) includes three preprogrammed layouts, including one that puts all the panels and other windows on a second monitor, while leaving the first monitor available for just Web page documents. The Mac version has a default and a dual-screen layout.

Категории