RE: Changing "link" properties using style sheets...

by "Barlow, Maureen (REI)" <maureen.barlow(at)reed-elsevier.com>

 Date:  Thu, 17 Jan 2002 12:48:43 -0500
 To:  "'hwg-style(at)hwg.org'" <hwg-style(at)hwg.org>
  todo: View Thread, Original
Michael,

You want to create a special class just for the anchors.  For example, using
your 'council' style:

<!--Style Sheet

A:Link.council { text-decoration: none;
		background-color: none;
		color: #FFFF80
		font-size: 12pt;
		font-family: arial;
		font-weight: bold;
	      }
A:Visited.council { ..whatever changes you want, if any
		for the visited council links.. }

-->

Then, do like you did below, call the anchor with <.a class="council".>,
etc.

HTH,

Maureen


-----Original Message-----
From: Michael Boyer [mailto:galdor7(at)hotmail.com] 
Sent: Thursday, January 17, 2002 10:57 AM
To: hwg-style(at)hwg.org
Subject: Changing "link" properties using style sheets...


I was under the impression that the "link" property could be changed with a 
"class" specification but I can't seem to get it working. How do I go about 
having differen't links have different properties to them using style 
sheets?

Here's what I have for my style sheet and what I'm trying to do:


<!--Style Sheet

body {
	background: #FFFFFF;
	color: black;
	font-size: 12pt;
	font-family: times new roman;
     }

.council {	text-decoration: none;
		background-color: none;
		color: #FFFF80
		font-size: 12pt;
		font-family: arial;
		font-weight: bold;
	     }

a:link	{	text-decoration: none;
		color: #3F6DE1;
		font-size: 12pt;
		font-family: arial;
		font-weight: bold;
	}
-->

<!--HTML Code
<table>
<tr align="center" bgcolor="#426EFC" width="294">
     <td><P><A class="council" Href="mayor.shtml">Donald E. Esty 
Jr.<BR>Mayor</a></P></td>
     <td>&nbsp;</td>
</tr>

...more table rows etc.

-->

As you can see I have an "Anchor" in the table, but I don't want it to carry

the styles of the normal a:link style, but I want it to be a special style, 
the style specified in "council". But this doesn't seem to be working. Is 
this even possible, and if so, how do I do it?

Thanks for any help...

Michael Boyer
Technology Support Specialist
City of Westbrook, ME
galdor7(at)hotmail.com
mboyer(at)westbrook.me.us






_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx

HWG hwg-style mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.