W3C home > Mailing lists > Public > www-style@w3.org > August 1997

Re: Link colors

From: EMeyer <eam3@po.cwru.edu>
Date: Thu, 28 Aug 1997 10:05:10 -0500
Message-Id: <v03102800b02b430234cc@[]>
To: www-style@w3.org
>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;}

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

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
   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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:44 UTC