Re: Link colors

>Okay. Now. On the side bar (vertically) we want the links to be "Burnt
>Sienna" { color : #990000 } and the visited link the same color.
>
>Any link inside the body text of the document must have {color:#990000} for
>the active link, and {color:#C0C0C0} for the visited link.
>
>If we wanted to achieve the result through the use of a style sheet only,
>in other words, no "STYLE=" syntax within the <A HREF> tag, how is this to
>be achieved?
>
>Answers will be gratefully acknowledged.

Would this be an acceptable solution?

   <STYLE type="text/css">
   A:link.sidebar {color: #990000;}
   A:visited.sidebar {color: #990000;}
   </STYLE>

   <DIV class="sidebar">
      ...sidebar links and other content...
   </DIV>

As a bonus, if you wrap the entire sidebar in this DIV tag, then you could
set other styles for the sidebar and (in theory) have them applied only
there.
   Be careful, though, if you're using tables.  The various popular Web
browsers have varying degrees of success applying style within tables.  You
may have to experiment quite a bit to find a cross-browser solution.

--
Eric A. Meyer  -  eam3@po.cwru.edu  -  http://www.cwru.edu/home/eam3.html
 Hypermedia Systems Manager
 Digital Media Services                http://www.cwru.edu/dms/dms.html
 Case Western Reserve University       http://www.cwru.edu/

Received on Thursday, 28 August 1997 10:05:18 UTC