Parkland College > CSIT Dept > Web Technology > CSC 121 >
Calendar > Lesson 6


CSC 121 WEB SITE DESIGN
Lesson 6: Layers and CSS in Dreamweaver
Instructor: Paul Young

 

 

 

Objectives

 

 

To become more comfortable in the Dreamweaver environment by building a simple web site similar to this site.

 

 

 

Discussion

 

 

Just as in print, visually appealing web pages involve a balanced layout and clean typography. In this lesson, we'll pay particular attention to these issues.

Tables were not originally design for layouts, but many layout "tricks" in web design still require the use of tables. In this lesson, we'll make use of the 100% width table to help balance the graphics on the page.

Web typography has improved greatly with the introduction of Cascading Style Sheets (CSS). Using CSS, designers can now control line spacing and precise font sizes with pixels. CSS can also remove the ugly underline for links that is the default for HTML. For more information on web typography, read this excellent article from Webmonkey.

 

 

 

Procedure

 

 

Overview: Import graphics into a Dreamweaver table, add a tiled background. Copy content from Lesson 3 into layers. Attach a CSS style sheet. Test, publish to server.

Creating the home page

  1. launch Dreamweaver
  2. define a new site (site > manage sites > new site): name=lesson6,
    local root folder=jsmith/csc121/upload/lesson6
  3. create a new file (file > new: basic HTML page): index.htm
  4. insert > table (1 row, 3 col, width=100%, others=0)
  5. cell properties: vertical=top (all 3 cells)
  6. in col 1: insert > image "name.gif", repeat with other cells
  7. add hotspots, link each hot spot to a new page (i.e. "blog.htm")
  8. save, file > preview in browser (F12)
  9. modify > page properties: eyedropper bg color (continuous tone)
  10. select table: bg image="bg.gif"
  11. in col 3, cell properties: horizontal=right

Finishing the HTML file

  1. change title to "Jane Smith"
  2. insert > head > description
  3. window > snippets: meta > no cache (insert in code view)
  4. add alt tags
  5. commands > clean up HTML

Creating the inside pages

  1. duplicate "index.htm", rename "blog.htm", open file
  2. delete "links.gif", "art.gif"
  3. open Lesson 3's "blog.htm", copy links to clipboard (ctrl+C)
  4. paste clipboard text into new layer (crtl+V)
  5. adjust position of text (add SHIFT+ENTER, insert non-breaking spaces)
  6. draw new layer to position links (L:0px, W:100%); align text right
  7. save, file > preview in browser (F12)

Making CSS styles

  1. window > CSS styles (edit styles)
  2. attach style sheet "style.css", create
  3. redefine HTML tag <body> (box: margin: top=0, left=0, right=0, bottom=0)
  4. redefine HTML tag <p>: font=verdana, size=11, line height=18, color=?
  5. new CSS style: redefine HTML tag <h4>: font=verdana, size=13, line height=18, color=?
  6. new CSS style: redefine HTML tag <a>: weight=bold, decoration=none, color=?
  7. new CSS style: use CSS selector "a:hover": decoration=underline
  8. redefine HTML tag <li> by duplicating <p> tag
  9. save, file > preview in browser (F12)
  10. attach "style.css" to "index.htm"

Creating the rest of the site

  1. duplicate "blog.htm" to make the other pages
  2. copy content from Lesson 3 into new files
  3. test, troubleshoot, publish (see instructions from Lesson 4)

 

 

BACK TO TOP

______________________________

Last updated: 9/23/05 • Webmaster: Paul Young

 

 

Student
Exhibition

Influential
Designers

Internet
Resources

Tips, Tricks
& Handouts