Creating a Banner For the Rooftop Restaurant![]() IntroductionThe image above is a scaled down version of the banner that you will be creating in this tutorial. You will need the two files contained in this zip file for this tutorial. Be prepared to download the zip file and then use the files when instructed to do so.
Remember that if you are a student, you are entitled to steep discounts at the UCLA campus bookstore (bring your course receipt) or at online sites that offer educational discounts. The Adobe site has a store for students. 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. The banner you will create would be used on the page that describes one of the restaurant's 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 web 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 (capital) letter as a different character than the lower case of the same letter (small 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, if you needed to save an html file for the page that will have this banner on it, you might want to combine the words: Special and Page. Here are examples of several possibilities for naming such a file, each using a different file naming convention. Note how an underscore ( _ ) or a capital letter can be 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.
|
Create the file and backgroundStart Fireworks. In the File menu select New. Then follow the seven steps in the illustration below: |
If you are using Fireworks CS6...Make the following setting if you want to prevent a blue border around a section of your banner and general misalignment, particularly when seen in Internet Explorer. This option will not be available if you do not have a file open:
|
Save Your FileTake a moment to save your file in Fireworks' default format PNG. Save it in your images folder. Name it: BNR_yourlastname (replace "yourlastname" with your actual last name). The .png file extension will get added automatically. PNG stands for Portable Network Graphics and is usually pronounced "ping".
|
Make the rectangular background shapes |
|
|
We will now make some decorative rectangles for the background of our banner.
|
![]() |
|
|
![]() |
Position the Text
|
Adding transparency to a GIF fileNext, we will take an old-fashioned illustration of the sun and remove the lighter colors from it so that we can see our yellow background color come through while retaining the darker colors to keep the image looking like the sun. See the group of three illustrations below of the sun. It shows the progression of the image as it has color removed from it replaced by transparency. The transparency allows the yellow background to come through. 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. Note that GIF = Graphics Interchange Format. It is pronounced "giff" with a hard or a soft G. We want the yellow color of our banner's background to be seen through all but the darkest parts of the old-style illustration of the sun that initially has a white background.
Fireworks assumed that we wanted to make only the white color transparent, because it is the predominant color in the illustration. Therefore, initially, only the white area has been made transparent. As mentioned above, transparency is traditionally represented in graphics programs such as Fireworks by a gray and white checkerboard pattern. If you look closely you will notice that not only does the small color swatch have that gray and white checkerboard, but that the pattern also appears behind the sun in the image preview area on the right side of the Image Preview dialog box. There is a problem with setting only the white
area to be transparent. This problem becomes very apparent when the image is seen
against our dark yellow background color - there will be a light colored fringe
around the dark colors. This is what would happen if we were to use only the preliminary transparency setting (see the middle illustration): |
![]() |
![]() |
![]() |
Before Transparency: The image consists of white and many shades of gray along the edges of the dark gray shapes. Many of the lighter shades of gray are not that apparent now. |
Inadequate Transparency: If you set only the 100% pure white background to be transparent, the yellow background is visible through that transparent area. An unsightly light colored fringe appears around the gray shapes. This indicates that not enough of the light gray colors have been removed. |
Adequate Transparency: The only colors left are the dark grays. The fringe is gone. |
You may not think that there are that many colors in the image because it looks as if the remaining shapes are a uniform dark gray. However, if you were to look closely at the edges of the dark gray shapes, you would see pixels with those colors. Here is a picture of some of those remaining pixels greatly enlarged: |
Because of this, we need to select the light grays that remain in the image and designate that they too be made transparent. The darker grays that remain will be enough to adequately represent the image of the sun.
|
Put the sun on your banner
|
Add another picture
Next, the last main section of this exercise is slicing, read on... |
Slicing the bannerImage slicing carves up an image into smaller pieces. It is used for a few reasons, including these, which are what we will be using it for:
Slicing divides up the image into several smaller image files. It also generates an html file with coded instructions on how the slices are to be reassembled using an html table. An html 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). You may be interested to know that there are three html tags used to make a table. All of them must be used in order to form a table. They are: <table>, <tr> (table row), and <td>, which stands officially for table data, but simply means a single cell. The table (the html code and images) that we will create using slicing can be used in other html pages if so desired. That is what might be done in a situation such as this. Our sliced banner could be placed in another page that has additional content such as a picture and description of the day's special. |
|
Submitting Your Work:
|
Congratulations, you did it! *gulp*...you did, didn't you? ;-) © 2012 Dan Hitchcock Vaughan and its licensors. All rights reserved. |