Dreamweaver 8[c] The Missing Manual
Dreamweaver 8 adds a useful new design tool, one that's very common in graphic arts programs like Adobe Illustrator, InDesign, and Quark XPress. Guides are simply lines that you drag onto the document window from the top or left ruler. They provide alignment aids that make it easy to draw layout tables and cells , or (if you're using CSS positioning as discussed in the next chapter) to accurately position CSS-controlled <div> tags on a page.
To use guides, you must first turn on the document window's rulers by choosing View
Figure 7-2. The View Options menu lets you show or hide rulers as well as guides, head content (see Figure 1-2), a tracing image (see Section 7.3.7), and a regularly spaced grid of lines.
You also need to make sure guides are turned on. Use the View Options menu (Figure 7-2), the View
Figure 7-3. Dreamweaver 8's new guides let you add helpful guidelines by dragging them from any point along the document window's top or left rulers. Guides let you accurately place page elements and also act like helpful measuring tapes that let you determine the distance between objects on a page.
The number in the yellow box indicates the distance between the guide and the ruler's zero point. Normally the ruler starts at zero in the upper-left edge of the document window. However, you can drag the box at the edges of the rulers (circled in Figure 7-3) onto the document window to reset the zero point, placing it somewhere in the middle of the document. In earlier versions of Dreamweaver (before guides), this was a handy way to measure the distance from one object to another object on a pagejust drag the zero point to the edge of one object and read on the ruler the distance to the next object. But now, guides can handle this function much more gracefully, as described next.
Tip: If you accidentally change the zero point, just double-click the ruler origin box (circled in Figure 7-3) to reset the zero point to the top-left corner of the document window.
If you hold down the Ctrl (
Tip: You can still see distances between guides and the edges of your document even after placing guides on a page. Just hold down the Ctrl (
Once you've added a guide, to remove it, just drag it off any edge of the page, or, to reposition it, drag it to another part of the document window. You can temporarily hide the guides using one of the same methods discussed earlier for turning them onfor example, Ctrl+; (
Figure 7-4. The Guides menu lets you hide, show, and otherwise control guides. Select the "Edit Guides" option to change the color Dreamweaver uses for displaying guide and distance lines.
Note: Dreamweaver remembers where you placed guides on a particular page, even if you quit and restart the program. It stores that information in a folder called _notes , which is stored in the same folder the page is in. If you delete the _notes folder, you lose all of the guide information for all pages in the same folder.
7.1.1. Checking the Fold
There's one final option provided by the new guides feature that helps Web designers see how their designs fit inside a variety of different size browser windows . One difficulty in designing Web pages is designing for a variety of different monitor sizes. People use a wide range of resolutions when using a computerranging from 640 x 480 pixel settings for small monitors up to the colossal 2560 x 1600 pixel resolution of Apple's 30" Cinema Display. It's all too easy, if you, Ms. Fancy-Pants Web Designer, have a big monitor, to create a page where all the important information won't appear to the average visitor unless he scrolls down or, even worse , scrolls to the right.
Note: Newspapers put the most important stories on the top half of the front page; stories of lesser importance appear "below the fold."
The Guides menu provides a quick way to slap down guides that mark the boundaries of the viewable area of most Web browsers at a variety of resolutions (see Figure 7-4). Just choose one of the resolutions640 x 480, 800 x 600, and so on and Dreamweaver displays green guides marking the bottom and right edge of the display area. If any of the page's content falls to the right of the vertical green line, a visitor viewing the page at the specified resolution needs to scroll right; anything below the horizontal green line appears only when the visitor scrolls down.
Note: The two 640 x 480 options are quickly become relics. Fewer and fewer people have monitors this small or set their monitors to this resolution. In addition, the default option's pretty much useless since browsers no longer open to a set or "default" size each time you open them. In this day and age, browsers open to whatever dimension the visitor last had the browser set at when she quit the browser. The "Maximized" option just means the browser window is expanded to fill as much area of the screen as possible.
You can turn on multiple sets of these guides at one timefor 640 x 480, 800 x 600, and so on. But doing so makes it difficult to determine which guides belong to which window size, since the guidelines are all the same color. It's even harder to tell which guides are the "fold" guides, if you've already dragged a lot of green guides onto the page. An alternative method is the Window Size menu in the bottom-right corner of the document window.