Utilities........................................................ 173
Find and Replace................................................................................174
Check spelling....................................................................................178
Change HTML code............................................................................180
Check for broken links.......................................................................184
TABLE OF CONTENTS i
Interactivity .................................................187
Employ forms..................................................................................... 188
Employ Templates ............................................................................. 204
Upload sites to a Web server............................................................ 214
Advanced Layout.........................................227
Employ background graphics .......................................................... 228
Employ custom styles ....................................................................... 234
Employ spacer GIFs .......................................................................... 239
Specify page margins........................................................................ 243
Create rollover effects ....................................................................... 246
ii TABLE OF CONTENTS
Dreamweaver Basics
In this section, you’ll learn how to:
DREAMWEAVER BASICS 1
Set up a Web site
Set up Dreamweaver on first-time use
1. Open Dreamweaver.
The first time you open it, the Workspace Setup window will
appear:
2 DREAMWEAVER BASICS
2. Leave the Designer radio button checked, then click the
button.
DREAMWEAVER BASICS 3
3. When the Start Page appears, click the Don’t show again
checkbox.
4. When the alert window appears, check the Don’t show me this
message again checkbox, then click the button.
4 DREAMWEAVER BASICS
5. Close Dreamweaver.
DREAMWEAVER BASICS 5
Create a new site
1. Open Dreamweaver.
6 DREAMWEAVER BASICS
3. When the Manage Sites window appears, click the
button.
DREAMWEAVER BASICS 7
5. When the Site Definition window appears, type:
Dogs
8 DREAMWEAVER BASICS
6. When the second screen appears, check the No, I do not want
to use a server technology radio button.
DREAMWEAVER BASICS 9
7. When the next screen appears, leave the Edit local copies on
my machine radio button checked.
8. When the next screen appears, click FTP in the How do you
connect to your remote server? list.
10 DREAMWEAVER BASICS
9. In the What is the hostname or FTP address of your Web
server? box, type:
www.yourserver.com
Tip: Not this literal server address, but the real address of your
Web server.
DREAMWEAVER BASICS 11
10. When the next screen appears, leave the No, do not enable
check in and check out radio button checked.
12 DREAMWEAVER BASICS
11. When the Summary screen appears, click the button.
DREAMWEAVER BASICS 13
12. In the Manage Sites window, click the button.
14 DREAMWEAVER BASICS
Create a home page
DREAMWEAVER BASICS 15
2. When the New Document window appears, click HTML in the
Basic page column.
16 DREAMWEAVER BASICS
A blank page should open:
DREAMWEAVER BASICS 17
4. On the Menu Bar, click File, then Save.
5. When the Save As window appears, make sure the Dogs folder
appears in the Save in box.
18 DREAMWEAVER BASICS
Then type:
index.html
DREAMWEAVER BASICS 19
6. Click the button.
20 DREAMWEAVER BASICS
Home page file names
The home page of any Web site has the file name index.html.
DREAMWEAVER BASICS 21
7. Right-click in blank space on the page.
22 DREAMWEAVER BASICS
8. In the Category list, click Title/Encoding.
DREAMWEAVER BASICS 23
9. When the Title/Encoding screen appears, type:
24 DREAMWEAVER BASICS
Page titles
The title of a Web page describes the page. It’s what appears in a
browser’s History list.
The page title shows up in the top, or “title,” bar of the browser used
to view it. The title of this page is Dogs.
DREAMWEAVER BASICS 25
The page should look like this:
You have created a home page titled A Home Page About Dogs.
26 DREAMWEAVER BASICS
Format text
Create a style sheet
DREAMWEAVER BASICS 27
2. When the New Document window appears, click CSS in the
Basic page column.
28 DREAMWEAVER BASICS
A blank page should open:
DREAMWEAVER BASICS 29
4. When the New CSS Rule window appears, click the Tag radio
button in the Selector Type list:
30 DREAMWEAVER BASICS
6. Click the button.
DREAMWEAVER BASICS 31
8. In the Weight list, click bold.
32 DREAMWEAVER BASICS
10. On the Menu Bar, click File, then Save.
format.css
DREAMWEAVER BASICS 33
11. Click the button.
34 DREAMWEAVER BASICS
Integrate a style sheet
DREAMWEAVER BASICS 35
3. When the Attach External Style Sheet window appears, click
the button.
4. When the Select Style Sheet File window appears, make sure
Dogs is in the Look in box.
36 DREAMWEAVER BASICS
Apply formatting
DREAMWEAVER BASICS 37
The text should now look like this:
38 DREAMWEAVER BASICS
Change text size
2. Click h1.
DREAMWEAVER BASICS 39
4. In the Properties panel, click the icon.
40 DREAMWEAVER BASICS
5. When the CSS Rule definition window appears, click 16 in the
Size list.
DREAMWEAVER BASICS 41
Change text weight
1. Click at the end of the text, then press the ENTER key on your
keyboard to start a new paragraph.
2. Type:
4. Click format.css.
42 DREAMWEAVER BASICS
5. In format.css, put the cursor on line 6.
DREAMWEAVER BASICS 43
6. Right-click the page.
44 DREAMWEAVER BASICS
7. When the New CSS Rule window appears, make sure the Tag
radio button is selected.
DREAMWEAVER BASICS 45
9. When the CSS Rule definition window appears, click Arial,
Helvetica, sans serif in the Font list.
46 DREAMWEAVER BASICS
11. Click index.html.
DREAMWEAVER BASICS 47
13. In the Properties pane, click the button.
48 DREAMWEAVER BASICS
Align text
DREAMWEAVER BASICS 49
The page should look like this:
50 DREAMWEAVER BASICS
Indent text
German Shepherd
Yorkshire Terrier
DREAMWEAVER BASICS 51
2. Highlight all three paragraphs, then click the button in the
Properties pane.
52 DREAMWEAVER BASICS
The page should look like this:
DREAMWEAVER BASICS 53
Create lists
54 DREAMWEAVER BASICS
4. Change the title of the home page, index.html, to My Favorite
Dogs.
DREAMWEAVER BASICS 55
8. Save the page.
56 DREAMWEAVER BASICS
Create links to new pages
Step 1: Create a new page
DREAMWEAVER BASICS 57
3. Right-click the new page.
58 DREAMWEAVER BASICS
4. Click Title/Encoding in the Category list.
DREAMWEAVER BASICS 59
File names for the Web
Most Web servers are Unix- or Linux-based, which don’t deal cleanly
with spaces in file names. For instance if you name a file fido
page.html, it may show up in the URL box of the browser as
fido%20page.html.
chesapeake.html
60 DREAMWEAVER BASICS
8. Click the button.
9. Type:
10. In the Properties pane, click Attach Style Sheet in the Style
list.
DREAMWEAVER BASICS 61
11. When the Attach External Style Sheet window appears, click
the button.
62 DREAMWEAVER BASICS
14. In format.css, place the cursor on line 11, then press the
ENTER key on your keyboard.
DREAMWEAVER BASICS 63
16. When the New CSS Rule window appears, make sure the Tag
radio button is selected.
64 DREAMWEAVER BASICS
18. When the CSS Rule definition window appears, click Verdana,
Arial, Helvetica, sans serif in the Font list.
DREAMWEAVER BASICS 65
21. With the cursor on the first line, click Heading 2 in the Format
list.
66 DREAMWEAVER BASICS
Providing navigation clues with text size
DREAMWEAVER BASICS 67
Step 2: Link to the new page
1. Click index.html.
68 DREAMWEAVER BASICS
4. When the Hyperlink window appears, click the icon.
DREAMWEAVER BASICS 69
7. Click the page.
10. When the menu appears, click Preview in the browser of your
choice.
70 DREAMWEAVER BASICS
11. Click the Chesapeake Bay Retriever link.
14. Verify that both new pages are linked to the format.css style
sheet.
15. On the home page, link the words German Shepherd and
Yorkshire Terrier to their pages.
DREAMWEAVER BASICS 71
16. On the home page, remove the words
Home Page
after
Dogs
17. Make sure the headings of the German Shepherd and Yorkshire
Terrier pages are the same size as the heading of the
Chesapeake Bay Retriever page.
19. Click the home page’s links to make sure they work.
72 DREAMWEAVER BASICS
Create e-mail and external links
Create an e-mail link
1. Open Dreamweaver.
DREAMWEAVER BASICS 73
4. Highlight dogs@dogs.com.
74 DREAMWEAVER BASICS
7. Click on the page.
DREAMWEAVER BASICS 75
Link to an external site
76 DREAMWEAVER BASICS
3. When the Hyperlink window appears, make sure that
http://www.dogs.com appears in the Link box.
_new
DREAMWEAVER BASICS 77
5. Click the page.
78 DREAMWEAVER BASICS
8. When the page comes up in the browser, click the
www.dogs.com link.
DREAMWEAVER BASICS 79
Insert graphics
Capture a graphic from the Web
www.visibooks.com/books/dw8/dogpics
Right
mouse
button
4. When the Save Picture window appears, click the Dogs folder
in the Save in drop-down list.
80 DREAMWEAVER BASICS
6. Double-click the images folder so it appears in the Save in drop-
down list.
DREAMWEAVER BASICS 81
Insert a graphic
82 DREAMWEAVER BASICS
3. When the Select Image Source window appears, double-click
the images folder.
DREAMWEAVER BASICS 83
4. Click the chessie graphic, then click the button.
84 DREAMWEAVER BASICS
The page should look like this:
DREAMWEAVER BASICS 85
Align a graphic
86 DREAMWEAVER BASICS
2. Right-click the graphic.
DREAMWEAVER BASICS 87
3. Save the page, then preview the page in the browser.
88 DREAMWEAVER BASICS
Format a graphic
DREAMWEAVER BASICS 89
2. When the Tag Editor window appears, type:
Alt text
90 DREAMWEAVER BASICS
3. Assign Horizontal space of 12, and Vertical space of 4:
4. Change Border to 1.
DREAMWEAVER BASICS 91
5. Click the button, then save the page.
Horizontal spacing of 12
creates a horizontal
space of 12 pixels around
the graphic that nothing
can occupy
A Border of 1 creates a 1-
pixel border around the
graphic
92 DREAMWEAVER BASICS
7. Go to:
www.visibooks.com/books/dw8/dogpics
9. Save the Yorkshire Terrier graphic in the images folder, with the
file name yorkie.gif.
11. Insert yorkie.gif into the Yorkshire Terriers page below the
heading.
14. On both pages, align the text to the side of the graphic, as on the
Chesapeake Bay Retrievers page.
DREAMWEAVER BASICS 93
16. Save both pages.
94 DREAMWEAVER BASICS
Create a basic navigation system
Link back to the home page
2. View chesapeake.html.
Home
DREAMWEAVER BASICS 95
4. Highlight the word Home, then click the icon.
96 DREAMWEAVER BASICS
5. When the Hyperlink window appears, click the icon.
When the Select File window appears, click index, then click the
button.
DREAMWEAVER BASICS 97
7. Click the page to de-select the text.
98 DREAMWEAVER BASICS
9. Click the Home link.
DREAMWEAVER BASICS 99
12. Create a link back to the home page just like in the Chesapeake
Bay Retriever page:
1. View chesapeake.html.
Tip: If the link doesn’t work quite right, click the icon in the
Properties pane.
To show people where they are, make the link corresponding to the
current page into plain text. This lets users know that if they can’t go
to that page, they must be looking at it.
Making the text bold reinforces the “you are here” message.
1. View index.html.
7. View german.html.
12. Using the same system, create navigation links for the Yorkshire
Terriers page. Then save the page.
13. On the home page, link the German Shepherd graphic to the
German Shepherds page.
14. Link the Yorkshire Terrier graphic to the Yorkshire Terriers page.
www.visibooks.com/books/dw8/dogs
1. View format.css.
4. When the New CSS Style window appears, make sure the Tag
radio button is selected, then click body in the Tag list:
9. Save format.css.
1. View format.css.
3. When the New CSS Style window appears, make sure the Tag
radio button is selected, then click a in the Tag list:
Learning that “red equals link” once is easier than having to figure out
the link color for each page or section of a site.
2. Create a home page in the Cats folder with the file name
index.html.
Tip: Reuse another style sheet: open format.css from the Dogs
site, then save it in the Cats folder.
6. Below the main heading on the home page, insert a bulleted list:
• House Cats
• Alley Cats
• Big Cats
housecats.html
alleycats.html
bigcats.html
9. View index.html, and link each list item to a new page about it.
For instance, the words House Cats at the top of the house cats
page.
www.visibooks.com/books/dw8/catpics
16. Align each graphic left, then specify Vertical space of 4 and
Horizontal space of 16.
17. Link each of the three pages back to the home page, and to
each other.
On each page, make the “you are here” link into bold, plain text.
18. Using the style sheet, make the background color of each page
light gray.
formatting in the style sheet. The color code for light gray is
#CCCCCC.
www.visibooks.com/books/dw8/cats
Almost all professional-quality Web sites are laid out using tables. A
table on a Web page has cells that contain links, graphics, and text.
The lines on this page clearly show its layout with table cells:
1. Open Dreamweaver.
Travel
5. When the second screen appears, check the No, I do not want
to use a server technology radio button.
7. When the next screen appears, click FTP in the How do you
connect to your remote server? list.
www.yourserver.com
Tip: Not this literal server address, but the real address of your
Web server.
9. When the next screen appears, leave the No, do not enable
check in and check out radio button checked.
15. When the Save As window appears, make sure the Travel
folder appears in the Save in box.
index.html
Type:
links
content
You’ll notice that the word links is right up against the edge of
the left-hand cell.
16
Type:
www.visibooks.com/books/dw8/travelpic
3. In the right-hand cell on the home page, replace the word content
with the heading:
Traveling South
If you've got a couple of weeks for vacation, you might want to visit
the South. Richmond, Williamsburg, and Charleston are all
beautiful cities.
Richmond
Williamsburg
Charleston
20%
in the W box.
11. Click the second cell, then click Top in the Vert list.
Type:
80%
in the W box.
4. Click index.html.
6. Click richmond.html.
www.visibooks.com/books/dw8/travelpic/richpic
11. Replace the Traveling South heading with one that reads:
Richmond, Virginia
13. Replace the home page graphic with the Richmond graphic,
capitol.
15. Add the word Home below Charleston in the left-hand cell:
17. Create pages for Williamsburg and Charleston just like the
Richmond page.
Get the graphic and text for the Williamsburg page at:
www.visibooks.com/books/dw8/travelpic/willpic
www.visibooks.com/books/dw8/travelpic/charlpic
www.visibooks.com/books/dw8/travel
2. Create a new Web site in a new folder called Vacation within the
My Documents folder.
Type:
Cell padding: 4
Cell spacing: 0
California
The Rockies
The Midwest
33%
in the W box.
15. Make the center cell 34% wide, and give it the same background
color.
16. Make the last cell 33% wide, and give it the same background
color.
22. View the home page, index.html, in the Vacation Web site, and
link it to the west.css style sheet.
Traveling West
Save it as california.html.
5. View california.html.
Tip: There are now four cells in the table, and their widths must
add up to 100%. That means 25% per cell.
9. Cut the text The Midwest from the last cell and paste it in the
third cell.
Home
It will be The Midwest page, but leave it blank for right now.
19. Copy the navigation table at the top of california.html and paste
it into rockies.html.
20. Change the “You are here” yellow background color from the
California cell to The Rockies cell.
21. Link the words California, The Midwest and Home to their
respective pages.
Tip: To change a word from a link to plain text, just place your
cursor in the link, then delete the page from the Link box in the
Properties pane.
24. View index.html, and in the navigation bar, link the words The
Rockies and The Midwest to their respective pages.
25. Make all “you are here” text that corresponds to the current page
bold.
27. Save the pages, then preview the site in the browser.
www.visibooks.com/books/dw8/vacation
1. View california.html.
2. Below the navigation bar table, add another table with one row
and two columns.
4. In the left-hand cell, put the subsections for the main California
section:
Highway 101
Big Sur
Format it as Heading 2.
6. View west.css.
Click the blank line beneath the existing tags, then press the
ENTER key on your keyboard to place the cursor on line 25.
8. Save west.css.
9. View goldengate.html.
10. Link the words California, Highway 101, and Big Sur to their
respective pages.
Leave The Golden Gate Bridge as plain text to show “you are
here.”
Copying tables from one page and pasting them into new pages
ensures that all pages share the same layout.
13. Link the words The Golden Gate Bridge, Highway 101 and Big
Sur to their respective pages.
19. Change the text Highway 101 from a link to plain text.
20. Change the Highway 101 page’s heading and descriptive text
beneath it so it looks like this:
Heading:
Paragraph:
There are many excellent hotels right on the ocean in Big Sur.
www.visibooks.com/books/dw8/vacation2
streams.html
snow.html
rocks.html
3. Make sure that these pages are linked and laid out just like the
Golden Gate Bridge, Highway 101 and Big Sur pages.
Page Heading
streams.html Mountain Streams
snow.html Snow in the Rockies
rocks.html Rock Formations
Page Heading
midwest.html Cities of the Midwest
Page Heading
stlouis.html St. Louis
chicago.html Chicago
desmoines.html DesMoines
Tip: If you can’t see all the pages across the top of the window,
just click the W or X icons.
www.visibooks.com/books/dw8/vacation3
7. Close Dreamweaver.
UTILITIES 173
Find and Replace
1. Open Dreamweaver.
174 UTILITIES
Tip: If Replace doesn’t appear in the menu, click the double
down arrows.
Richmond
River City
UTILITIES 175
7. In the Find in list, click Entire Current Local Site.
176 UTILITIES
The page should look like this:
UTILITIES 177
Check spelling
1. View williamsburg.html.
178 UTILITIES
4. When you’re finished checking the spelling of the site, click the
button.
UTILITIES 179
Change HTML code
Changing HTML
In the Web’s early days, people used to have to write HTML to create
Web pages, but now programs like Dreamweaver write HTML for
you. However, sometimes you may want to bypass Dreamweaver’s
point-and-click interface to work directly with the HTML code it
generates.
180 UTILITIES
The page should now look like this:
width=”50%”
UTILITIES 181
5. Save the page, then click the icon.
6. Click the icon, then change the table width back to 100%:
182 UTILITIES
7. Save the page, then click the icon.
UTILITIES 183
Check for broken links
1. On the Menu Bar, click Site, then Check Links Sitewide.
184 UTILITIES
Practice: Utilities
1. Open the Dogs Web site.
4. In the HTML source code of the home page, change the Border
of each graphic to 1.
Tip: Using the icon, find the <img> tags in the home
page’s HTML code. Then change border=”0” to border=”1”
and save the page.
UTILITIES 185
186 UTILITIES
Interactivity
In this section, you’ll learn how to:
• Employ forms
• Employ templates
• Upload sites to a Web server
INTERACTIVITY 187
Employ forms
Create a form
188 INTERACTIVITY
7. On the Menu Bar, click Insert, then Form, then Form.
INTERACTIVITY 189
9. When the Table window appears, give the table:
4 Rows, 2 Columns,
set the Table width to 50 percent,
give it Cell padding of 4,
and a Border thickness of 1.
190 INTERACTIVITY
11. In the top three left-hand cells, type:
Name:
Address:
Email:
INTERACTIVITY 191
13. Close the browser.
14. Click in the top right-hand cell to place the cursor there.
15. On the Menu Bar, click Insert, Form, then Text Field.
192 INTERACTIVITY
16. When the Input Tag Accessibility Attributes window appears,
click the button.
INTERACTIVITY 193
17. Use the same process to insert textbox input fields in the table
cells next to Address and Email as well.
name
19. Click the second textbox, then in the Properties pane, type:
address
194 INTERACTIVITY
20. Use the same process to assign the name
INTERACTIVITY 195
24. Click the new button.
Send me information
196 INTERACTIVITY
26. Click the page.
INTERACTIVITY 197
28. Align the text in the left-hand cells to the right.
29. Make the left-hand cell in the first row 5% wide, and the right-
hand cell in the first row 45% wide.
Tip: By specifying the width of cells in the first row, the cells in
the rows beneath will assume the same widths.
198 INTERACTIVITY
31. Save the page and view it in the browser.
INTERACTIVITY 199
34. Save the page and view it in the browser.
200 INTERACTIVITY
Make the form work
1. View infoform.html.
4. Type:
infoform
INTERACTIVITY 201
6. Save the page.
The action above tells the form to post its data to a program called
formmail.pl at yourdomain.com.
The formmail.pl program might take the form data visitors submit
and e-mail it to you.
7. Create a new page in the Vacation site with the file name
favoritesform.html.
9. Insert a form, then insert a table with four rows and two cells in
each row.
10. Fill the cells with the text and form objects seen below:
List/Menu
Radio
buttons
202 INTERACTIVITY
11. Put these values in the List/Menu:
California
The Rockies
The Midwest
12. When finished, save the page and preview it in the browser.
INTERACTIVITY 203
Employ Templates
Dreamweaver templates
This helps keep things consistent when different people are working
on the same site. Also, after a site is finished, the pages created from
a template can be changed just by changing the template itself.
Create a template
204 INTERACTIVITY
3. When the Save As Template window appears, type:
Main Section
INTERACTIVITY 205
The page is now saved as Main Section.dwt in the Templates
folder.
When the alert window appears, click the Don’t warn me again
checkbox, then the button.
206 INTERACTIVITY
8. Highlight the entire top table—the one that comprises the
navigation bar.
INTERACTIVITY 207
11. When the New Editable Region window appears, type:
navbar
208 INTERACTIVITY
Tip: Place the cursor directly over the cell until it turns into a
down arrow. Then click.
INTERACTIVITY 209
15. Select the right-hand cell in the lower table, and make it a New
Editable Region called text.
210 INTERACTIVITY
Create a new page from a template
INTERACTIVITY 211
5. Click the button.
california2.html
12. Make the left-hand cell in the lower table (the one containing The
Golden Gate Bridge, Highway 101 and Big Sur) a New Editable
Region.
212 INTERACTIVITY
Tip: Don’t make the navigation bar an editable region in the
template.
14. Make the right-hand cell in the lower table an Editable Region.
17. Use the template to create another Big Sur page with file name
bigsur2.html.
INTERACTIVITY 213
Upload sites to a Web server
FTP
214 INTERACTIVITY
2. In the Manage Sites window, click the button.
6. In the next screen, make sure that FTP is selected in the How
do you connect to your remote server? list.
INTERACTIVITY 215
Tip: Contact your Web server administrator to find out the Host
Name or FTP Address of your Web server.
Tip: Your Web server administrator can tell you this as well.
Tip: The Web server administrator can also supply your FTP
Login username and Password.
216 INTERACTIVITY
The screen should look like this:
If the FTP connection to your Web server works, this window will
appear:
INTERACTIVITY 217
11. Click the button.
218 INTERACTIVITY
Send pages to the Web server
INTERACTIVITY 219
5. Click the arrow.
A Status window will appear that shows the site files uploading
to the server:
220 INTERACTIVITY
All the site’s pages will appear in the Files pane:
INTERACTIVITY 221
Practice: Interactivity
Create a new home page and site
1. Open Dreamweaver.
3. Create a new home page titled World Dances, and save it in the
Dance site.
4. Create a home page for the site that looks like this:
www.visibooks.com/books/dw8/dancing
222 INTERACTIVITY
5. At the bottom of this and every other page in the site, put an e-
mail link to info@worlddance.org.
INTERACTIVITY 223
Create main section pages
american.html
latin.html
european.html
www.visibooks.com/books/dw8/dancing
2. Make the Latin and European pages look consistent with the
American dance page.
224 INTERACTIVITY
Create subsection pages
1. On the American dance page, link the words Lindy Hop and
Foxtrot to new subsection pages on those dances.
Get the images and text for this and the other subsection pages
at:
www.visibooks.com/books/dw8/dancesub
2. Make the Foxtrot page look consistent with the Lindy Hop page.
4. Create the subsection pages Waltz and Contra Dancing for the
European section.
INTERACTIVITY 225
Creating forms
2. When you’re done, preview the whole Web site in the browser.
www.visibooks.com/books/dw8/worlddancing
4. Close Dreamweaver.
226 INTERACTIVITY
Advanced Layout
In this section, you’ll learn how to:
Tip: In the Bg color grid, click the square with the code
#000099.
8. Make the first cell 10% wide, and the second cell 90% wide.
www.visibooks.com/books/dw8/advlayout/pics
11. Go to:
www.visibooks.com/books/dw8/advlayout/pics
16. Open west.css from the Vacation site, then save it in the
Advanced Layout site as layout.css.
17. In layout.css, change the formatting for the h1 tag so it’s in the
Arial font, 14 points, bold, and colored white.
The cell is 136 pixels tall: 100 pixels for techtool.gif, plus 36 for
cell padding (18 pixels at the top and bottom of techtool.gif).
bkgd.gif is only 123 pixels tall; therefore, there’s 13 pixels of
space left to fill.
Laptops
Cell Phones
5. In the third:
PDAs
.navbar
11. Click the Color icon, then click White in the color grid.
A spacer GIF is used in the exercise below. It keeps the width of the
left-hand cell constant, regardless of the size or resolution of the
screen used to view it.
www.visibooks.com/books/dw8/advlayout/pics
2. In index.html, below the two tables, insert a third table just like
the top table.
100
in the H box.
Tip: Most spacer GIFs are 1x1 pixel, which load very quickly
online. This one started out as 50x50 to make it easier to see
and save.
5. Change the background color of the cell containing spacer.gif to
yellow.
Tip: You can format the text like above by highlighting it, then
clicking the Font and Size drop-down lists in the Properties
pane.
Notice how the left-hand cells in the top and bottom tables stay
the same width, regardless of the width of the window used to
view them.
margin-top:0
margin-right:0
margin-bottom:0
margin-left:0
5. View index.html.
Press the ENTER key to place the cursor on the next line.
3. When the New CSS Rule window appears, click the Advanced
radio button.
7. View index.html.
laptops.html
a {text-decoration:none}
a {color:#FFFFFF; text-decoration:none}
4. Give the cells with the | characters a width of 1%, and center the
| characters within the cells.
6. Link the words Cell Phones and PDAs to new pages named
phones.html and pdas.html, respectively.
www.visibooks.com/books/dw8/advlayout
If you liked using this book, and would like to use more like it, visit:
www.visibooks.com
• Computer Basics
• Microsoft Office
• Desktop Linux
• OpenOffice.org
• Web Site Layout
• Web Graphics
• Web Programming
www.visibooks.com