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 1 - Finishing Your Home Page (15 points)

Due Date: Wednesday January 24, 2007 by 10:00 PM (week 3)

This is the second stage of your Home Page project. This week you will update the Home page you built last week by adding some basic styling and then upload it to your CTIS web space.

Submission instructions are at the end of this document.

This homework assignment assumes that you followed the initial instructions for Homework 1 and now have a home.html document. This document should be valid XHTML code and look similar to the illustration in the original instructions.

This week you will modify the Home page slightly. Basically you will be eliminating any in-line styles and replacing them with embedded styles. You will also add some properties to the major DIV elements you created last week to make the page look a little better.

We will continue to add, edit and change the Home page styling throughout the term.

Update Specifics

Contextual Selectors

In chapter 2, the author is focused on very specific contextual selectors - unique and specific rules for special situations. This material will be covered in more depth in week 3.

Our advice is to always keep your styles (or stylesheets) as simple as you can. Sure, at some point you may find the need to make only the first paragraph in a DIV red, but the goal in this document is to make the CSS readable, simple, and appropriate for the task at hand.

Remember this simple syntax:

     #DivID {  }

Meaning that you can specify a single DIV element and then set the rules for all elements within that specific DIV.

If you need to make a specific element within a DIV unique, you can use this:

     #DivID elementName {   }

Thus, you could use the following to specify that the A links within the "header" DIV are styled a certain way. Note that links in other DIVs are not affected. The logic is: within the DIV which has an ID of "header", the A links will be styled as we specify here:

     #header a {   }

This same logic/syntax can then be applied to any other element(s) contained with a specific DIV... the HRs, the Ps, etc.

Centering the Content DIV

Last week I showed you how to center the content of a DIV using text-align for the header and footer DIVs.

As your document is now, the content (the Homework and Lab lists) is probably left aligned, but way over to the left.

The document might look better if the "content" DIV itself was centered. This does not mean the content within the DIV is centered. I am instead referring to centering the entire content DIV element. In this way the text within the DIV is still left-aligned, but the entire DIV is centered within the document. In this way, when the window is re-sized, the content DIV is centered on the page as is the header and footer. Take a look at the sample image below.

You can do this by setting up these style properties for the "content" DIV:

In this way the DIV element is sized in width. The browser will then automatically adjust the left and right margins accordingly... the DIV itself is centered.

Submitting this Assignment

An Example of Your Completed Home Page

Example of completed home page.

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:12 AM