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
Tiling Images
To illustrate what you still need to do, go ahead and add several paragraph tags to the main content table cell.
Figure 62. Adding paragraph tags to show the broken tiles
As you can see from Figure 62 above, the interface falls apart when you add several paragraph tags to expand the tables vertically. You can correct this by further editing. Tile the predefined sliced images created in the Slicing and Exporting section. I created three slices named lefttile.jpg, middletile.jpg, and righttile.jpg. Use these images in a vertical tile, and this will eliminate the gaps created when you added the paragraph tags. For now, leave those paragraph tags. This will help you to see where are gaps are while you edit a bit more.
Before you start, I want to mention that you have two methods to choose
from when tiling images in table cells. One is embedding the tiled images
in a table cell (Example: <td background="assets/images/lefttile.jpg">)
and the other is using CSS.
Embedding the image in a table cell has one drawback. It is not valid HTML. However, even though this method is not valid, it does render on all 4.0 version browsers and above. You lose nothing other than validation. To me, there is nothing wrong with this method. I still use images embedded in table cells when I need to support Netscape 4x. If you don't care about supporting Netscape 4x and you want valid HTML, then you will want to use CSS for tiled images. For this article, you will use CSS.
-
Select the left image as shown in Figure 63 below.
Figure 63. Selecting the left image
-
Go to the bottom of the document window and select the
<table>tag furthest to the right as shown in Figure 64 below.
Figure 64. Selecting the table tag
- Press the Delete key on your keyboard. This will remove the nested table and the images.
-
Go to the Design panel and select the CSS tab. If the deign panel is not open, go to the main menu and select Window > CSS Styles.
Figure 65. Creating a new CSS style in the CSS Styles panel
- In the lower right corner of the CSS Styles tab, click on the plus (+) symbol. This will create a new style that you can define.
- In the name field, name the style lefttile.
- For the Selector type select, Class (can apply to any tag).
-
For Define in, select This document only and select OK.
Figure 66. Setting the attributes for the new CSS style
- The CSS Style definition dialog box appears. From the Category column to the left, select Background.
-
In the Background Image field, browse to the file lefttile.jpg as shown below. The lefttile.jpg file is included in the sample files you downloaded at the beginning of this article.
Figure 67. Setting the background images for the CSS style
-
Click OK.
- Place your cursor inside the empty cell on the left side of our interface.
-
Go to the Property inspector, click the Style pop-up menu, select lefttile, select the Vert pop-up menu, and choose Top.
Figure 68. Applying the lefttile style in the Property inspector
- With your cursor still inside the cell, go to the main menu and select Insert > Image.
-
Browse to the image named maincontentleft.jpg and click OK. Note: Dreamweaver MX 2004 will ask you to set the Alternate Text. From the pop-up menu, select Empty and click OK.
That completes setting up the tiling for the left side.
Figure 69. The completed CSS settings for the left side tiling
You have just added a new Style definition to your CSS style panel
you named lefttile.jpg. This style gets added to the document and
can be viewed in code view between the <head> tags
Next, complete the middle graphic tile by defining the CSS style.
- In the lower right corner of the CSS Styles tab, click the plus (+) symbol.
- In the name field, name the style middletile.
- For the Selector type, select Class (can apply to any tag).
- For the Define in, select This document only and click OK.
- The CSS Style definition dialog box appears. From the Category column to the left, select Background.
- In the Background Image field, browse to the file middletile.jpg and click OK.
- Place your cursor inside the cell where the middletile.jpg image currently sits.
- Go to the Property inspector and click the Style pop-up menu and select middletile.
That completes the middle divider tiling.
- In the lower right corner of the CSS Styles tab, click the plus (+) symbol.
- In the name field, name the style righttile.
- For the Selector type, select Class (can apply to any tag).
- For the Define in, select This document only and click OK.
- The CSS Style definition dialog box appears. From the Category column to the left, select Background.
- In the Background Image field, browse to the file righttile.jpg.
- Click OK.
- Place your cursor inside the empty cell on the right side of the interface.
- Go to the Property inspector and click the Style pop-up menu, select righttile, select the Vert pop-up menu, and choose Top.
- With your cursor still inside the cell, go to the main menu and select Insert > Image.
- Browse to the image named maincontentright.jpg and select OK.
Guess what? You are done! All that is left to do is add content.
Summary
As you can see, both Fireworks MX 2004 and Dreamweaver MX 2004 can be valuable tools in creating complex designs with ease and speed. It is my hope that what you have learned here will be helpful to you in your projects.