Creating a Layout with Fireworks MX 2004 and Dreamweaver MX 2004
Table of Contents
Creating the Ultraweaver Design
- Creating the Ultraweaver Design
- Creating the Shape Outline
- Adding Content Areas
- Fills and Effects - Adding Shadow and Color Fill
- Fills and Effects - Adding the Glass Effects
Slicing and Exporting Fireworks HTML
Importing and Editing Fireworks HTML in Dreamweaver
Importing and Editing Fireworks HTML in Dreamweaver
In the previous section, I had sliced the interface.png for you, and then you exported the file as Fireworks HTML. You will now edit the Fireworks HTML using Dreamweaver.
Create a New Site Definition
- Open Dreamweaver MX 2004.
- On the startup screen under the Create New column, select Dreamweaver Site….
- Select the Basic tab on the Site Definition dialog box.
- Name the site Interface and click Next.
- Select the radio button No, I do not want to use server technology and click Next.
- Select the radio button Edit local copies on my machine, then upload to server when ready. Browse to the folder where you created the folder called site and click Next.
- Set the How do you want to connect to your remote server? to Local/Network. Then, browse to the same site folder as you did in step 6 and click Next.
- Select the radio button No, do not enable check in and check out and click Next.
- You can review your site definition. If all looks well, click Done.
Your directory structure in Dreamweaver should look like Figure 41 below.
Figure 41. The Files panel showing the directory structure for the Dreamweaver site
Warning!—Fireworks MX 2004 Only There is an issue in Fireworks MX 2004 that may export incomplete HTML tags when exporting with the option of “Nested Tables – No Spacers” as we have done in this article. If this happens to you, it will be necessary to perform the following steps to fix the error. The symptoms are borders around tables when previewing the HTML file, as well as, Table cell padding and borders show as “undefined” rather then “0” when viewing the code. See Figures 41a and 41b below.

Figure 41a. When previewing in a browser the Fireworks MX 2004 HTML shows borders around tables due to the incomplete HTML.

Figure 41b. Code view of the incomplete HTML
To fix the invalid HTML, you will need to remove the “undefined” value from all related tags and replace with “0” (zero).
- In Dreamweaver go to the main menu and select Edit>Find and Replace
- In the Find and Replace dialogue box set the following properties as shown in figure 41c.
- Once you have entered the settings go ahead click the Replace All button.

Figure 41c. Use these settings to remove the “undefined” text and replace with “0”
The above 3 steps will fix the code that was exported from Fireworks MX 2004.