Backpackers Lessons
Backpackers Lessons
Build a Web Site with Dreamweaver CS5 using Div Tags, CSS styles pages, Flash Animation with Music and Videos
Dreamweaver CS5
Contents
Getting Started.............................................................................................................................................. 3 Create the body tag ...................................................................................................................................... 4 Apply properties Create body CSS Style ....................................................................................................... 4 Create wrapper Div Tag ................................................................................................................................ 5 Create header Div Tag................................................................................................................................... 5 Create main Div Tag ...................................................................................................................................... 6 Create sidebar Div Tag .................................................................................................................................. 6 Create footer Div Tag .................................................................................................................................... 7 Selecting a Color Group ................................................................................................................................ 8 Add content to header .................................................................................................................................. 9 Add content to sidebar ............................................................................................................................... 10 Add content to main ................................................................................................................................... 10 Add content to Footer ................................................................................................................................ 11 Add CSS Rule to the footer.......................................................................................................................... 11 Add another CSS rule to style to the footer................................................................................................ 11 Create an additional Page ........................................................................................................................... 12 Create 3 Editable Regions ........................................................................................................................... 14 Create a Template....................................................................................................................................... 15 Create new pages from Template............................................................................................................... 16
Dreamweaver CS5
Getting Started
In this exercise we will create a website using div tags, and style them using CSS. Images and animations are in the student folder - Backpackers Root Folder. 1. Place student exercise folder on desktop 2. Define the folder as your root folder (Site, new Site ) Backpackers 3. In Dreamweaver (CLASSIC VIEW) Create a new blank HTML document 4. Titles as: BackpackersHome Page, Save as: index.html (ensure saved in root) 5. Create a new CSS rule.
Dreamweaver CS5
Rule Definition
Note: Clicking OK on the New CSS Rule dialog box automatically opens the Save Style Sheet File As Dialog box.
SAVE. Note this automatically open the CSS Rule Definition Dialog box, OK
Save Style Sheet File As Backpacker
Dreamweaver CS5
wrapper div tag properties background #fff margin 0 padding 0 width 800
Dreamweaver CS5
main div tags properties: background #867F27 margin 0 padding 0 height 400 float - right
Dreamweaver CS5
footer div tag properties: background #7E5B33 height 125px clear - both
Save, View in browser
Dreamweaver CS5
Dreamweaver CS5
Dreamweaver CS5
Browser view with sidebar text links created, and camp2 image inserted 10
Dreamweaver CS5
11
Dreamweaver CS5 Create an additional page that follows the same general theme and design. Once an additional page is created it can be used as a template for all other pages. All of the div tags are available for reuse. Create a new HTML Page called blank.
Important Note: To reuse existing div tags make sure to select OK rather than new CSS RULE, otherwise duplicate tags will be made.
Insert Div Tag: Wrapper Within wrapper insert div tags: header main sidebar footer
12
Dreamweaver CS5
<body> <div id="wrapper"> <div id="header">Content for id "header" Goes Here</div> <div id="main-blank">Content for id "main-blank" Goes Here</div> <div id="sidebar">Content for id "sidebar" Goes Here</div> <div id="footer">Content for id "footer" Goes Here</div> Content for id "wrapper" Goes Here</div> </body> </html>
13
Dreamweaver CS5
14
Dreamweaver CS5
Create a Template
logo picture, title and main body area will be editable all other cells not.
15
Dreamweaver CS5
When the new page from template opens only the three editable regions can be edited. 1. 2. 3. 4. Add a title to the header editable region Add any navigations links in the sidebar editable region Add content to the main editable Save as about.html
From the template follow the four step process to create: Lake.html Wildlife.html Seasons.html Remember to save often and links the index page as well as the links in the individual pages Before testing in browser.
16
Dreamweaver CS5
ljsnay8/12
17