|
|
| Internal USGS Access Only |
Note: CSS information will not display in mosaic, lynx, versions of netscape before 4.0, versions of IE before 3.0, and will not print from Unix netscape.
Use the class notes along with the Cascading Style sheets book (by Lie & Bos) to change the following features of the web document from Exercise 1. For this assignment, embed the style information within the webpage.
Be Careful! One mistake can prevent all the defined styles from displaying.
Use SPAN and a class to set a background color on a piece of text.
The SPAN tag is used within existing html elements, while DIV is used to enclose existing elements.
When using the WDG CSSCheck validator, copy only what is between the style tags - do not include the <style type="text/css"> or </style> tags in the text. To copy text from Xemacs, either use the Copy button, Edit --> Copy, or Ctrl Insert (do not use Ctrl C).
Validate your style sheet using the online service WDG CSSCheck using the "Direct input of style sheet" option.
WDG CSSCheck will give you the following warning: "To help avoid conflicts with user style sheets, background and color properties should be specified together."
Setting background and color properties together matters when you are using inverse video (white text on a black background), and ensures that you are not inadvertently creating an unreadable block of text. This is a warning, not an error, and does not mean that your style sheets are incorrect.
assignment 2
|
|
"Mastering a Website" online course Created and maintained by Lorna Schmid and David Boldt. Last modified: Fri Aug 22 19:27:00 Mountain Daylight Time 2003 |