Link to USGS home page
Internal USGS Access Only

Cascading Style Sheets (CSS)

The best way to control the appearance of your Web pages; Style Sheets associate formatting with html elements.

CSS, level 1 (CSS1)
Became a W3C recommendation in December 1996. Addresses basic formatting, and a little bit more.
CSS2
Became a W3C recommendation in May 1998, and builds on CSS1 and adds support for media-specific style sheets (e.g. printers and aural devices), downloadable fonts, element positioning and tables.
CSS3
Still in draft. It will provide features to enhance forms, dynamic content, navigation, and accessibility

How Well are They Supported?

As more of the browsing public has access to browsers which consistently support style sheets, our ability to use style sheets could greatly affect how USGS Web pages are constructed.

All examples in this course are CSS level 1.

What is a Cascade?

The technical details on Cascade Order.

What can I do with Cascading Style Sheets?

The CSS Zen Garden Web site provides wonderful examples on the use of Cascading Style Sheets.

Two useful guides to how well style sheets are implemented on different browsers are " The House of Style", which lists CSS support by feature or browser, and the "Style Sheets Guide", which although slightly outdated provides browser compliance tables.

To see what style sheets can really do, download the latest browser version, Netscape 7, IE 6, or Opera, and view the WC3 CCS test suite. (If you open the same documents in IE 5.0 or Netscape 4.x you will see what the older browsers are still not supporting.)

slide 17


[up]
"Mastering a Web Site" online course
Created and maintained by Lorna Schmid and David Boldt.
http://water.usgs.gov/usgs/training/webmaster/cascading_style_sheets.html    
Last modified: Wed Nov 12 17:46:23 EST 2003