Beruflich Dokumente
Kultur Dokumente
Overview
This tutorial will walk you thru creating working navigation to multiple pages. You will create TEXT
navigation and they will connect to pages you create and to an outside webpage. You will then insert
images into your webpage.
Getting Started
1.
2.
3.
4.
5.
Create a new folder inside of your student folder. Call this folder LastName_NavTutorial1
Go to Canvas.
Download the images.zip file.
Unzip the file. Then delete the zip file.
ORGANIZE all your images. (Its ALWAYS best to go ahead and figure out how you are going to
organize all the files. See the page at the end of this to see exactly how they should be organized.)
6. Save it to your LastName_NavTutorial1 folder.
Open Dreamweaver.
Create a New file.
Go to your Files Palette.
In the files palette, click on folder drop down menu.
Click on Manage Sites.
In the Manage Sites window click on New.
In the Site Setup window Type in your site name: NavTutorial1
8.
9.
10.
11.
Navigation Tutorial 1
12. Now we need to save your index page. Go To File > Save As.
13.
14.
15.
16.
18. Inside the <title> tags add the words Navigation Tutorial 1.
a. Like this: <title> Navigation Tutorial 1 </title>
19. Save it. (CTRL+S)
Navigation Tutorial 1
2. Next, we will create the container for our website.
a. After the opening body tag you will create your code for the container.
i. Like this:
<div id="container" style="width: 1000px; height:
1200px; background-color: black;">
ii. Explanation:
1. id=Naming your DIV tag
2. Width = How wide is your header? This number should be exactly the
same size as your header image.
3. Height = How LONG does your web site need to be? You can
change this later if it is NOT long enough.
4. Background-color = What color do you want your website to be?
This color will be the background color INSIDE the container.
iii. Close your </div> tag at the bottom of the code right before the
</body> tag.
3. Adding your header to your webpage.
a. Now you need to insert your header to your webpage.
i. Like this:
<img src="images/images/header.jpg" alt="header"
width="1000" height="400";>
ii. Explanation:
1. Src= Where is the image located?
2. Alt=Alternative Text
3. Width=How wide is your header?
4. Height= How tall in your header?
4. Now its time to add the navigation box (Menu Box) on the left side of the container.
a. We need to define the box we want our navigation to be in.
i. Like this:
<div id="menu" style="background-color: #333333; color:
#FFFFFF; width: 200px; height: 800px; float: left;
text-align: center;">
ii. Explanation:
1. Id=What DIV is it?
2. Background-color=What color do you want your navigation area to be?
3. Color: #ffffff-What color do you want the text to be?
4. Width: How wide do you want the Navigation bar to be?
5. Height: The height is calculated like this
a. Container Height Header Height = Menu Height
b. 1000px (Container) 200px (Header)= 800px
6. Float=What alignment should you use for your Menu box? Where inside of
the container?
7. Text align=Where do you want the text of the menu to go?
iii. Close your </div> tag at the bottom of the code right before the other
closed </div> tag.
Navigation Tutorial 1
All of the code up to this point should now look like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Navigation & Images Assignment</title>
</head>
<body background="images/images/city.jpg">
<div id="container" style="width: 1000px; height: 1200px; background-color:
black;">
<img src="images/images/header.jpg" alt="header" width="1000" height="400";>
<div id="menu" style="background-color: #333333; color: #FFFFFF; width:
200px; height: 795px; float: left; text-align: center;">
<h1>Navigation</h1>
</div>
</div>
</body>
</html>
Navigation Tutorial 1
3. This is where we will make our links look like we want them to.
4. First, Click on Links (CSS) on the left side in the category box.
5. Choose these Settings:
a. Font: Palatino Linotype
b. Size: 24 px
c. Link Color #09F
d. Visited Links: #06F
e. Rollover Links: #FFF
f. Active Links: #FFF
6. Now click OK.
7. Select the word Home.
8. In the Link Box on the Properties
Panel, Type: index.html.
Navigation Tutorial 1
9. Select the word Seasons
10. In the Link Box on the Properties Panel, Type: seasons.html
11.
12.
13.
14.
Navigation Tutorial 1
3. Then Click Create.
4. Now go to File > Save As.
9. Now we need to finish designing our webpage. We will start with things that will be applied to
our layout.
10. We need to make our webpage is centered on the screen, and
have a border so our viewers will know where the edges of our container are.
We are also going to add a shadow to our container, so the website looks like its floating over
our background image.
body {width: 1000px; border: 5px solid #3bbcdc;
margin: 20px auto; box-shadow: 5px 5px 40px black}
i. Explanation:
1. Width=Matches the size of our container.
2. Border=Here we are telling it to add a border to our container that is 5
px solid and a teal color.
3. Margin=we are telling it where we want the page positioned on the
screen. The first number is the top and bottom; the second number is
the left and right. We have told it to center on the page by telling it
auto.
4. Box-shadow=this is putting a shadow on the box.
b. Now we will put in the formatting of our text headers. You should know what each of
these attributes are.
h1 {color: #ffffff; margin-top: 5px; margin-bottom: 0px;
text-shadow: 2px 2px 4px #3bbcdc; font-variant: small-caps;
font-size: 35px; font-family: 'Trocchi', serif; text-align:
center;}
h2 {color:#FFFFFF; margin: 5px; font-size: 25px; text-align:
center}
c. Now we will add our coding for our <p> tag otherwise we will NOT be able to see
the text considering default is black.
p {color: #FFFFFF; padding: 5px 5px; font-size: 18px;}
d. CTRL+S to save.
Digital Design and Media Production
Navigation Tutorial 1
Your CSS Code should look like this so far:
body {width: 1000px; height: 1200px; border: 5px solid #3bbcdc; margin: 20px
auto; box-shadow: 5px 5px 40px black}
h1 {color: #ffffff; margin-top: 5px; margin-bottom: 0px; text-shadow: 2px 2px
4px #3bbcdc; font-variant: small-caps; font-size: 30px; font-family:
'Trocchi', serif; text-align: center;}
h2 {color:#FFFFFF; margin: 5px; font-size: 25px; text-align: center}
p {color: #FFFFFF; padding: 5px 5px; font-size: 18px;}
Navigation Tutorial 1
Adding the layout to ALL of your website pages
Here we are going to take our layout that we have already created and apply that to our other pages of
our website. We have two other pages for this website and we will go ahead and apply this layout to
those two pages.
1. Ok now that we have our webpage ready to go we can go ahead and save it as our other two
pages that way we have the layout done for ALL three pages. We do this so that we do NOT
have to type all that code again!
2. Go To File > Save As.
3. This time the File Name is seasons.html
4. All the other settings are exactly like the first time we saved.
5. Now we are going to save our last website page.
6. Go To File > Save As.
7. This time the File Name is characters.html
8. Now your Files Palette should look like this:
Navigation Tutorial 1
2. Seasons page
a. Go to the seasons.html page.
b. Click in the body of our website in the design window.
c. Here we will give it a Header.
d. Type out the word Seasons
e. Select the word Seasons
f. Go down in the properties panel and Click on the Format Dropdown Menu.
g. Select Heading 1.
h. After the word Seasons you will type: Season 1
i. Go down in the properties window and Click on the Format Dropdown Menu.
j. Select Heading 2
k. Go over to your files palette and find your season 1 image.
l. Drag and Drop that image on to your webpage, under the season 1 words.
m. To force this to center for you - go to your code and Move the </h2> tag down
below your image. This will force the image to center in the body area!
a. Save (CTRL+S) and F12 to see it! Make sure it looks right!
3. Characters page
a. Go to your characters.html page.
b. Click in the body of our website in the design window.
c. Type out Characters
d. Select the word Characters
e. Go down in the properties panel and click on the Format Dropdown Menu.
f. Select Heading 1
Now we are going to add a table to hold our images of our characters.
a. Hit enter to go below the Characters
word.
b. Got up to the dropdown menus and click
on Insert > Table
c. Use these settings on the Table Options:
i. Row: 2
ii. Columns: 3
iii. Table Width: 800 px
iv. Border Thickness: 0
v. Cell Padding: 0
vi. Cell Spacing: 0
d. Click Ok.
e. Go click in the first box and Type:
Stephen
f. Go to your File Palette.
g. Find the Image named Stephen.jpg
h. Drag the image in the box with the name
Stephen.
i. SHIFT + ENTER to make your image go down below the name.
j. Go click in the second box and Type: Cara
k. Go to your File Palette.
Digital Design and Media Production
Navigation Tutorial 1
l.
m.
n.
o.
p.
q.
r.
s.
t.
u.