Laying out pages with CSS can be frustrating because it can sometimes be difficult to tell which elements are where and why. Thankfully, Dreamweaver has a few handy features that make creating CSS-based layouts much simpler. Dreamweaver refers to these as Visual Aids. Figure 6.26 shows our example CSS-based page with all visual aids turned off. It's fine, but if we had a problem, it would be difficult to tell where each div begins and ends. That's where the visual aids shine . Figure 6.26. The page looks nice, but it doesn't give any clues as to how it's laid out in Dreamweaver.
The visual aids can be found on the right side of the Document toolbar . Although it looks like a button, that little downward facing arrow means that it's actually a pop-up menu. If you click on it, you'll get the options seen in Figure 6.27 . Or, you can choose View > Visual Aids, and then select any of the menu options ( Figure 6.28 ). Figure 6.27. Here's the visual aids menu and your choices.
Figure 6.28. Or, you can get to it via the menu bar.
To turn each visual aid on or off, choose it from the menu to toggle its checkmark, or you can choose Hide All (Ctrl-Shift-I or Cmd-Shift-I) to turn them all off temporarily. For day-to-day use, we recommend keeping CSS Layout Backgrounds turned off, and CSS Layout Box Model and CSS Layout Outlines on. Here's a rundown of the CSS- related items in these menus :
|