RE: default.css

many thanks!

-----Original Message-----
From: fantasai []
Sent: Thursday, March 16, 2000 3:31 PM
To: Liu, Jay;
Subject: Re: default.css

> Is there a way to use 2 different HREF styles in CSS on one page?
> for example, for the body content links to be 'blue', a certain
> paragraph to be 'red'?

Use a class.

in stylesheet:

 a:link {color: blue} a:link {color: red}
     /* all links inside a <p> with class "red" will be red */

in document:

 this is a normal paragraph. <A href="file.htm">blue link</A>
 <p class="red">
 this paragraph is classified. <A href="file.htm">red link</A>

Received on Friday, 17 March 2000 07:08:29 UTC