This last part of the chapter on Web Standards in Dreamweaver shows you how to create a layout with a banner at the top of the page and a navigation menu on the left side. (From the book ASP.NET Web Development with Macromedia Dreamweaver MX 2004, by Costas Hadjisotiriou, 2004, Apress, ISBN: 1590593480.)
Web Standards in Dreamweaver Part 3 - Adding Page Content (Page 2 of 12 )
Follow these steps to add page content.
1. In order to see how your content will look, add some dummy content, including a level 1 heading and a level 2 heading, to the main content area of the page (the middle cell of the bottom row).
The content you add will take on the font of the style you set for page’s preferences.
2. You can now set styles for your headings by going to the New CSS Style dialog box, choosing the Tag (redefines the look of a specific tag) radio button, and then choosing the tag you want to style, as shown in Figure 2-25.
Figure 2-25. Setting styles for headings
Follow these steps to add the table that will contain the navigation.
Click the cell on the bottom left. In the Property inspector, select center from the Horz (align) drop-down list, and top from the Vert (valign) drop-down list.
Insert a table that contains four rows, one column, and the summary “This table contains the navigation.” In Design view, the table looks as shown in Figure 2-26.
Figure 2-26 The table in Design view
Adding Rollover Images
To make the navigation more interesting, let’s add some rollover buttons. Dreamweaver makes it simple to add such effects.
Insert the navigation images into the cells. Name them in the Property inspector as you insert them.
To add the rollover effect, in the Behaviors panel, click the plus sign (+) button and choose Swap Image.
Browse to the image you want and click OK, making sure that the options Preload images (which will load your image as the page loads so there is no delay when the mouse pointer rolls over it) and Restore images onMouseOut (which will roll the image back to its previous state when the mouse pointer is no longer rolling over the button) are both checked, as shown in Figure 2-27.
Figure 2-27. The Swap Image dialog box
TIP -- When adding images to your page, be sure to add alt text to the image. If you have set your preferences to prompt you for Accessibility attributes when you insert an image, a dialog box will request the alt text; otherwise, you can add it in the Property inspector.
After adding the images, this simple layout is complete, as shown in Figure 2-28.
Figure 2-28. The completed layout in Design view
The XHTML markup behind this document looks like this: