IntroductionA standard part of most web pages is a top banner. This is what most people will notice and read first when they come to the page. In this exercise you will use Fireworks to build a banner for a fictitious restaurant, The Rooftop Restaurant. This banner would be used on the page that describes one or all of their specials. This exercise will cover the following tools, techniques or topics:
|
It is a good idea to establish, and consistently use, file naming conventions. These are rules that are established to help minimize confusion. When your site grows to dozens, or hundreds, even thousands of files, it is good to name them systematically so that they are easier to identity without needing to open them. First and foremost in your file naming rules, never have any black spaces in your file or folder names. This is because many servers use the UNIX operating system (instead of Windows or Mac). UNIX interprets spaces as delineations between things: if there's a space in a folder or file name UNIX assumes that the name of one thing has ended and the next word is the name of something different. Also, UNIX is "case-sensitive" - meaning it sees an upper case letter as a different character than the lower case of the same letter. If you stick to generally using lower case letters, there is less of a chance for confusion (traditionally, lower case is used). The most important thing about file naming conventions is to establish rules and then stick to them consistently. Also, use words that will make the file easy to identify without needing to open it to find out what it is. For example, you will be instructed later in this exercise to save this file. The file name you will be given combines the two words: Special and Page. Here are a several possibilities for naming a file such as this when using some typical file naming conventions. Note how an underscore ( _ ) can be used to indicate a space and how an upper case letter can be effectively used to indicate the start of a new word:
|
|
Start Fireworks. In the File menu select New. Then...
|
|
|
We will now make some decorative rectangles for our banner.
|
|
|
|
![]() |
![]() |
![]() |
Before Adding Transparency |
After Adding Inadequate Transparency |
After Adding Adequate Transparency |
The GIF image file format allows you to select one or more of the colors in its image and remove them. This permits a color background to be seen through those areas. We want the yellow color of our banner's background to come through behind a graphic image of the sun when we place the sun on top of it.
Fireworks assumes that we want to make only the white color transparent, because it's the predominant color. Therefore, initially only the white area becomes transparent. Transparency is traditionally represented in programs such as Fireworks by a gray and white checkerboard pattern. Look at the area on the left side of the dialog box that has little gray color swatches. These are the colors that the image consists of. If you look closely you will notice that the swatch for white has become a gray and white checkerboard pattern. You will also see the gray and white checkerboard behind the sun in the image preview area on the right side of the dialog box. There is a problem however with setting only the white area to be transparent. When the image is placed against the yellow background a fringe is visible (see middle illustration above). It consists of the light gray colors that remained in the image. We need to select more of the colors that are used in the image to be made transparent. The colors we want to remove are the light grays that the fringe consists of.
|
|
Add another picture
|
Slicing the banner up to add a link and help the files load fasterWe will now prepare this banner for future use at a Web site by slicing it and adding a test link to one of the slices. Slicing is used for a few reasons:
Slicing divides up the image into several smaller image files. It also generates an html file with code instructions on how the slices are to be reassembled by using an html table. A table is a set of rows and columns created by html that you can use to put images, text, or other objects in. Each compartment of it is called a cell (similarly to Excel). A table can be very useful for positioning objects. There are three table tags: <table>, <tr> (for each table row), and <td>, which stands officially for table data, but means a cell. The entire table, code and images, can then be used in another, larger, html page if so desired. That's what might be done in a situation such as this. |
Congratulations, you did it! |
© 2004 Dan Hitchcock Vaughan and its licensors. All rights reserved.