CSS Projects
Once upon a time I took a CSS class and these are a couple
of my homework assignments. The idea was that we could not
edit the .htm file except to add the link th the .css file.
The "BEFORE" link shows the original file, the "AFTER" link
shows it with the css modifications and the last link is to
the actual .css file.
Project 2
An excercise to use a variety of css tags and colors. Color patterns from http://colorblender.com/,
http://www.interactive-earth.com/color/color_harmonizer.htm and
http://colorschemedesigner.com/.
[BEFORE] [AFTER] [project2.css]
Project 3
Excercise using a variety of tags and colors.
[BEFORE] [AFTER] [project3.css]
Project 4
Here is a list of all the styles added to the CSS file:
- page background image
- "wrapper" div horizontally centered within page (showing background image equally on each side)
- background image on "banner" div, with appropriately contrasting color for "banner" text
- horizontal "mainNav" navigation bar with the following features:
- different styles for different link states (link, visited, and hover)
- link styles should include, at minimum, borders, background colors, and text colors
- different styles on links within "mainContent" div
- graphic bullets on the unordered list within "mainContent" div
- any "fixes" necessary for IE
- add a generous sprinkling of previously learned CSS properties to make the page attractive and interesting
[BEFORE] [AFTER] [project4.css]
Project 6
The basic design you want to achieve is a 3-column layout using a fixed-width float method.
- The banner should be at the very top and stretch across all three columns
- Under the banner should be three columns (you decide their appropriate widths):
- left column contains both the site navigation and the useful links
- middle column contains the main content ("Jan's Notes")
- right column contains the "Have You Seen This?" items
- The footer should be at the very bottom and stretch across all three columns
Create a separate print style sheet for your project 6 page that includes:
- Link to the print CSS appropriately from the HTML file.
- The left column should not print.
- The right column should print, and any links in that column should have the URL appear in parentheses after the link. This must be accomplished with CSS, not in the HTML code!
- Find some little image that does not appear on the Web page when displayed in the browser, but that will show up when the page is printed. Place it somewhere in the banner.
- Follow any other "best practices" for print style sheets mentioned in Chapter 13.
[BEFORE] [AFTER] [project6.css] project6_print.css]
All .htm and .css files validated by http://validator.w3.org/ and http://jigsaw.w3.org/css-validator/
|