IntroductionYou will need the two files contained in this zip file for this tutorial. A 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 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, hundreds, or even thousands of files, it is good to name the files and their folders systematically so that they are easier to locate and also easier to identity without needing to open them up and inspect them. First and foremost: never have any blank spaces in your file or folder names. This is because many servers use the UNIX operating system (instead of Windows or Mac) and UNIX can have big problems with spaces in file and folder names. 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 but there are many naming conventions that mix the two. The most important thing about file naming conventions is to establish rules and then stick to them consistently. Also, use words that will make it easy to determine the type of information that is in the file. For example, you will be instructed later in this exercise to save a file. The file name you will be asked to use combines the words: Special and Page. Following are examples of several possibilities for naming such a file, each using a different file naming convention. 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:
|
Lay the foundationLet us now create the folder structure that we will use for this exercise's files. This will be a very simple yet sensible folder structure. The way that you name and structure the hierarchy (arrangement) of your folders needs to be easily understood by you and any others who work on your site.
|
Start Fireworks. In the File menu select New. Then...
Make the rectangular background shapes |
|
|
We will now make some decorative rectangles for our banner.
|
|
|
|
![]() |
![]() |
![]() |
Before Transparency |
Inadequate Transparency |
Adequate Transparency |
The GIF image file format allows you to select one or more of the colors in an image and remove them, leaving transparency where the color had been. If the image is then superimposed over a color background, the background color will be seen through those transparent areas. We want the yellow color of our banner's background to be seen through all but the darkest parts of an old-style illustration of the sun that originally has a white background.
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). This fringe consists of the light gray color pixels that remained in the image after the white pixels were removed when the transparency was initially set. We need to select the light grays that are used in the image and designate that they also be made transparent. The darker grays that remain will be enough to adequately represent the image of the sun.
|
|
Add another picture
|
Slicing the banner up to add a link and help the files load fasterWe will now prepare the banner as if it were to be used by others at our company who are working on the restaurant's site. We will slice it and add a 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 using an html table. A table is a set of rows and columns created in html that you can use to hold images, text, and other objects. Each compartment of it is called a cell (similar to Excel). There are three table tags: <table>, <tr> (table row), and <td>, which stands officially for table data, but means a cell. Our entire table (code and images) can be used in other html pages if so desired. That's what might be done in a situation such as this. |
Congratulations, you did it! |
© 2005 Dan Hitchcock Vaughan and its licensors. All rights reserved.