COIN 65 Logo
This page contains the materials needed for Internet Technologies - COIN 65 taught by Sandi Watkins.
View the forum for updates and announcements. View my blog for the same!
Sandi's Blog | Schedule | ETUDES | Forum | Class Sites | Syllabus | Resources | CTIS | Foothill
Homework 3b - Cascade and Specificity (5 points)

Due Date: Wednesday January 31, 2007 by 10:00 PM (week 4)

This assignment addresses the "cascade" in Cascading Style Sheets as well as the subject of CSS rule specificity.

Homework Guidelines

Specifics

This homework will give you practice with three important aspects of working with CSS: linking and attaching external style sheets, using the normal cascade of style sheets to determine the styling outcome of a web page, and using specificity to make a particular style rule override the normal cascade of style sheets.

Carefully follow the sequence of instructions to create the three files listed below. You will be copying and renaming previous homework files for use in this assignment.

If you have not already done so, create a directory named week_3 into which you will place the homework_3b files.

You will use a copy of homework_2b.html and the css file that you attached to it, in addition to creating another style sheet, in order to explore the cascade of styles.

Part I - Collecting the Files

At this point the week_3 directory should contain the images sub-directory plus the following three files (and possibly your homework_3a files):

Part II - Attaching the First External Style Sheet

Part III - Attaching the Second External Style Sheet

Note that the blue styled page does not look exactly like it did last week. Some of the margins are bigger, the first line of the paragraph text is now indented, and the headings are slightly different. This is because the document is now displaying a combination of styles from 3b_green.css and 3b_blue.css files.

Open the two css files (3b_green.css and 3b_blue.css) and find the style declarations that conflict. Note which ones 'win.'

Part IV

Part V - Using Specificity

Top | Sandi's Blog | Schedule | ETUDES | Forum | Class Sites | Syllabus | Resources | CTIS | Foothill
This site is best viewed with a "modern" browser - Firefox, Netscape, Opera, Safari (not IE 6 or below)
For best results, install the following plug-ins: Adobe Acrobat Reader, Quicktime, and RealAudio.
Copyright © 2006-07 Sandi Watkins & Greg Mcilhiney
Internet Technologies Department / Computers, Technology & Information Systems Division
Last Update: Saturday, April 7, 2007 at 7:21 AM