simple css problem

This is a simple css class that I wish to apply on text, now the problem is that the text contains Links too and I want to change link color, font etc.
.quote {
      font-family: Verdana;
      font-size: 9pt;
      font-style: normal;
      line-height: normal;
      font-weight: normal;
      font-variant: normal;
      text-transform: none;
      color: #000000;
}
.quote:link {
color:#3333ff; text-decoration:none;font-size: 11pt;
}
.quote:visited {
color:#66666; text-decoration:none;
}
.quote:active {
color:#FF0033; text-decoration:underline;
}
.quote:hover {
color:#3333ff; text-decoration:underline;
}
The class is working well for simple text but when links come it doesn't apply the code for this(like for hover, visited and link).
LVL 11
jimmy282Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

seanpowellCommented:
Like this:

.quote a:visited { color:#66666; text-decoration:none; }

with

<p class="quote"><a href="#">text</a></p>

Let me know if you need more detail, okay?

Thanks,
Sean
0
RoonaanCommented:
In the current setup you could try using:
<p class="quote">text <a href="#" class="quote">link</a> text</p>

But the solution provided by seanpowell has some better semantics.

-r-
0
jimmy282Author Commented:
my problem is this.
I already have text in about 200 pages/
something like this.
<A class="" href="something.htm"><SPAN
class=quote>text here</SPAN></A>

now how do I apply my "quote" class to these SPAN's inside the <a> tag. please help.
0
jimmy282Author Commented:
I dont want to change the HTML at all. I can only make changes to the css. but what changes?
0
RoonaanCommented:
a:link span.quote {some definitions}
a:visited span.quote {some definitions}
a:active span.quote {some definitions}
a:hover span.quote {some definitions}
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.