Experiment 10
(last updated:
Oct 8, 2008)
The goal is similar to that of
Experiment 9:
enhance a page from the raw material using style properties.
In this case we're attempting to create a
previous incarnation (with some of my own enhancements) of
Create the final product by adding
only style rules and class attribute settings
within various HTML elements.
-
Create a folder
presmsg
and within it, the subfolder
images.
-
Download the starter file presmsg.html
to the presmsg folder.
-
Download each of these files and save them into the
images subfolder
of presmsg.
The presmsg.html document should now look
like this.
Then add style rules and class attributes according to these ideas:
- The body uses the background image, fade-bg.jpg.
- The president's image is floating.
- The president's image has a border and separation
from the surrounding text on the left and bottom.
- The header image is centered.
- The document's font is verdana with sans-serif fallback.
The base size is 10pt.
- The document as a whole is pushed out from the
edges on the left, right and top, with more on the top.
-
The paragraph "Greeting from ...": the color is #800080 and
it has a larger font size.
- Extra space has been added around the horizontal rule.
- Extra space has been added between the list items.
An (advanced) step:
-
Use the psuedo-class properties of hyperlinks to create the effects of
the navigational hyperlinks at the bottom.
© Robert M. Kline