logo © 1996 Phil Waclawski Felitaur Enterprises Home Page

Cascading Style Sheets

General Style Setup

  1. Make sure to close all tags that need it, including <P> and <LI>
  2. Style rules follow this syntax
    selector { property: value; }
  3. example: (for both external and embedded)

    BODY { background-color: #CCFFFF;
    font-family: Arial, Helvetica, sans-serif;
    color: #330066;
    margin: 5px, 5px ; }
    a:link { color: #CC9900 }
    a:visited { color: #660000 }
    a:hover { color: #333300; background-color: #6666ff; border-style: solid; border-color: #000000;} a:active { color: #FF0000 }
    h1 { color: green;
    border-style: double;
    border-color: #00FF00;
    border-width: 3px ;
    font-family: Helvetica;
    font-size: x-large;
    text-align: center;
    margin: 5px, 5px ;
    width: 50% ; }
    P EM { border-style: double;
    background-color: white;
    border-color: #000000;
    border-width: 5px; }
    P { text-align: left; }

  4. .note {font-family: courier; color: blue;}
  5. CSS Positioning/ Z ordering
  6. CSS Properties List (coming soon?)

External Styles

  1. Links to an OUTSIDE page
  2. In the <HEAD> put either...

Embedded Styles

Inline Styles

Classes