Dynamic Alternatives
http://www.dynalt.com/
City, St Zip


Date: Mon, 25 Mar 2002 17:53:58 -0800



Mr. Rod Welch
rowelch@attglobal.net
The Welch Company
440 Davis Court #1602
San Francisco, CA 94111 2496
..
Subject:   Issues with sample "purple number" files

Rod,

You ask several questions about the purple number sample files at

http://www.welchco.com/sd/08/00101/02/02/03/13/070849.HTM#TN52
..
At the top of each file is the following:

(style type="text/css")
        a.nid {
          font-family: "Helvetica", "Arial", sans-serif;
          font-style: normal;
          font-weight: bold;
          font-size: x-small;
          text-decoration: none;
          color: #C8A8FF;}
        (/style)
(/head)
This is a portion of a CSS (Cascading StyleSheet) that sets the formatting for the purple numbers. The ‘class="nid" in the anchors ties them to this style because of the 'a.nid' at the start of the style. The rest of this is just the font and color information. For examples, look at any of Eugene's purple numbered files (I copied one at
..
http://www.dynalt.com/SDS/purple.html

...), since that is where I took it from.

The triple spacing in the code came about because I didn't correct for a quirk in SDS records that has them end with 2 carriage returns and a linefeed. My editor "kindly" added the extra line feed getting everything at least double spaced. I fixed this in a later version but didn't update the samples.
..
The code added for the targets...

http://www.welchco.com/sd/08/00101/02/02/03/13/070849.HTM#TN9X

...is class="nid" href="#AAAA">(AAAA) ...where AAAA is the anchor.
..
There is a typo in the SDS record. The "Class="nid" ties the style of the anchor to the style defined as "a.nid" at the top of the file. Any simple tutorial on CSS such as the one at...

http://www.htmlhelp.com/reference/css/
..
...will explain this. The selectors that link CSS and HTML are discussed explicitly at...

http://www.htmlhelp.com/reference/css/structure.html

I hope this helps.
..
Thanks,

Sincerely,



Gary