Cascading Style Sheets

Cascading Style Sheets (CSS) is a mechanism for allowing web authors and readers to attach styles including fonts, colors, etc. to HTML documents. Authors can attach styles to their HTML documents whild readers may have their own personal style sheets.

Typically the styles are placed in the HEAD of the document, although they can also be placed in the BODY and often are placed in a separate file. The basic format of the STYLE tag is:
    <STYLE TYPE="text/css">
        HTML tag.class {special formatting}
        ....
        <SPAN> {special formatting}
    </STYLE>

e.g.
<STYLE TYPE="text/css">
<!--
BODY{background: #FFFFEE; color: #000077; font-size: 14pt; font-family: Arial Black; font-weight: normal; text-align: left; margin-left: 1in; margin-right: 1in} P{margin-top: 5px; margin: 0.25in}
-->
</STYLE>



Style Sheet example
Form Letter Style Sheet
Simple Layer Example
Dynamically changing a layer's visibility
Style Sheet Template

Links to documents on CSS


Click here to return to Wayne's World's homepage: return to Wayne's World
written by Wayne Summers summers_wayne@ColumbusState.edu