Rulers help you measure, organize, and plan your layout. They can appear on the left and top borders of the page, marked in pixels, inches, or centimeters.
- To toggle rulers on and off, select View > Design View Options > Rules > Show/Hide.
- To change the origin, drag the ruler-origin icon (at the upper-left corner of the Design view of the Document window) anywhere on the page.
- To reset the origin to its default position, select View > Design View Options >Rulers > Reset Origin.
- To change the unit of measure, select View > Rulers, and then select Pixels, Inches, or Centimeters.
Guides are lines that you drag onto the document from the rulers. They help you place and align objects more precisely. You can also use guides to measure the size of page elements, or emulate the folds (visible areas) of web browsers.
To help you align elements, you can snap elements to guides, and snap guides to elements. (Elements must be absolutely positioned in order for the snap feature to work.) You can also lock guides to prevent them from being accidentally moved by another user.
Position the guide in the Document window and release the mouse button (reposition the guide by dragging it again).
By default, guides are recorded as absolute pixel measurements from the top or left side of the document, and are shown relative to the origin of the ruler. To record the guide as a percentage, press the Shift key while you create or move the guide.
- To snap elements to guides, select View > Design View Options > Guides > Snap to Guides.
- To snap guides to elements, select View > Design View Options > Guides > Guides Snap to Elements.
When you resize elements, such as absolutely-positioned elements (AP elements), tables, and images, the resized elements snap to guides.
The unit of measure is the same as the unit of measure used for the rulers.
Specifies the color of the guide lines. Click the color swatch and select a color from the color picker, or type a hexadecimal number in the text box.
Specifies the color of the lines that appear as distance indicators when you hold the mouse pointer between guides. Click the color swatch and select a color from the color picker, or type a hexadecimal number in the text box.
When guides are added to a Dreamweaver template, all instances of the template inherit the guides. Guides in template instances, however, are treated as editable regions, so users can modify them. Modified guides in template instances are restored to their original location whenever the instance is updated with the master template.
You can also add your own guides to instances of a template. Guides added in this manner are not overwritten when the template instance is updated with the master template.
The grid displays a system of horizontal and vertical lines in the Document window. It is useful for placing objects precisely. You can make absolutely-positioned page elements automatically snap to the grid as you move them, and change the grid or control the snapping behavior by specifying grid settings. Snapping works whether or not the grid is visible.
Specifies the color of the grid lines. Click the color swatch and select a color from the color picker, or type a hexadecimal number in the text box.
Controls how far apart the grid lines are. Enter a number and select Pixels, Inches, or Centimeters from the menu.
If Show Grid is not selected, the grid does not appear in the document and no changes are visible.
You can use a tracing image as a guide to re‑create a page design that was created in a graphics application such as Adobe Freehand or Fireworks.
A tracing image is a JPEG, GIF, or PNG image that is placed in the background of the Document window. You can hide the image, set its opacity, and change its position.
The tracing image is visible only in Dreamweaver; it is not visible when you view the page in a browser. When the tracing image is visible, the page’s real background image and color are not visible in the Document window; however, the background image and color will be visible when the page is viewed in a browser.
Set properties for a tracing image (which is an image file to use as a guide in designing your page).
From the Page Properties dialog box, select Tracing Image. You can configure the following options from this panel:
- Tracing Image: Specifies an image to use as a guide for copying a design. This image is for reference only, and does not appear when the document is displayed in a browser.
- Transparency: Determines the opacity of the tracing image, from completely transparent to completely opaque.