Creating Background Images


Like you did in Chapter 9, let’s first define our background images before going any further. Dreamweaver’s Properties inspector is where you’ll perform the following:

  1. Select each of the images within the Dreamweaver tables and hit your Delete key. This removes them from the Designer Layout. Don’t worry, though; you’ll add them back in a moment.

  2. Select the first cell in your table (the one that held your title bar). Now, press the folder next to the Bg field in the Properties inspector. The Select Image Source dialog box displays.

    The Bg field is where you define background images.

  3. In the Select Image Source dialog box, go to the folder that contains the images for your web page. (Photoshop saved this folder in the same location you saved your web page.)

  4. Select the title bar image (it may be Simeon_home_01.gif). If you’re not sure, press the View Menu icon. This is the icon next to the Look in drop-down field. From the View menu, select Thumbnails.

  5. Press OK. You’re returned to the Designer Layout. Notice this image displays in your web page. If you look at the Properties inspector, the Bg field displays the Simeon_home_01.gif image. That means this image now is a background image.

Continue working your way around the table cells. Add the appropriate images again as background images using the Properties inspector.

Tip 

You may need to adjust the tables as you add these background images. Sometimes too much of the background image displays and you see tiling. Other times you’ll find that too little of your background image displays, thus cutting off half of your image.
You can adjust tables by placing your cursor over a table border. Your cursor will change into a double parallel line with two arrows pointing in opposite directions. Click and drag your mouse over a table border, and you’ll find yourself adjusting the size of a table cell.

Slivers and Backgrounds

Remember the gradient background and sliver you created in Chapter 8? Let’s add these now to the San Simeon web page. Perform the following steps:

  1. In Dreamweaver, click and delete the center contents area of your web page.

  2. Press the folder next to the Bg field in the Properties inspector. The Select Image Source dialog box displays.

    The Bg field is where you define background images.

  3. In the Select Image Source dialog box, go to the folder that contains the grn-grad.png image you created in Chapter 8.

    Note 

    You can find this file in the Chapter 11 folder of the companion files, available at www.wordware.com/files/webdesign.

  4. Press OK. You’re returned to the Designer Layout. Notice this image displays in your web page, as shown in Figure 11-28.

    image from book
    Figure 11-28: Adding a background image to your web page

Drawing a Layout Table Cell

Notice that your background image tiles. Your image’s width blends seamlessly, but the height tiles over and over. Let’s correct that now with the sliver you created in Chapter 8.

  1. In the Dreamweaver Insert bar, select the Layout mode. Then select the Layout view (next to the Standard and Expanded modes), as shown in Figure 11-29.

    image from book
    Figure 11-29: Selecting the Layout mode from the Insert bar

  2. Select the Draw Layout Cell option in the Insert bar.

  3. Click and drag your mouse to make a new table cell within the contents area. Cover up the bottom two background images that tile, as shown in Figure 11-30.

    image from book
    Figure 11-30: Adding a table cell with the Draw Layout Cell option

  4. Click the [exit] hyperlink at the top of your web page (next to the Layout mode text) to exit the Layout mode. Notice your background images are gone, and the center contents area is now divided into two cells.

    image from book
    Figure 11-31: Viewing the results of adding cells to your web page

Merging Cells

Unfortunately, you may notice the right and left sides of the screen now tile. This is easy to correct. Let’s merge some table cells on your screen to get rid of some of this tiling.

  1. Click and drag your mouse over the two cells on the right side of your web page. These are the cells that contain the colored menu selections.

  2. Release your mouse. Then right-click within this selected area. A pop-up menu displays. Select TableMerge Cells from this menu, as shown in Figure 11-32.

    image from book
    Figure 11-32: Merging table cells

Once you release your mouse, these two cells on the right side merge. You should see only one instance of the color menu selections. These should not tile.

Do the same for the navigation menu on the left side of your web page (merge these two cells). Once you’ve done this, you’re ready to add your background and sliver images.

Adding a Background and Sliver Image

In the top cell, add the grn-grad.png file as a background image. In the bottom cell, add the grn-grad-sliver.png file as a background image. Your screen should look like Figure 11-33.

image from book
Figure 11-33: Adding background and sliver images

Note 

You can find these files in the Chapter 11 folder of the companion files, available at www.wordware.com/files/webdesign.

Adding Content

To finish up your web page, add some content and maybe a navigational footer at the bottom of your web page. Then preview your page in a web browser. Try to make your web page look like Figure 11-34.

image from book
Figure 11-34: Adding content to your web page




Web Designer's Guide to Adobe Photoshop
Web Designers Guide to Adobe Photoshop (Wordware Applications Library)
ISBN: 1598220012
EAN: 2147483647
Year: 2006
Pages: 108
Authors: Chris Tull

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net