Some CSS question

H

Hardy Wang

Hi,
I have a style sheet file, which contains one class to define color of
<a href=""> in the page
A:link
{
color: #000000;
font-family: Arial, Helvetica, sans-serif;
font-style: normal;
}
What I need is to make some of the links in the page to have a different
color, other than defined in CSS file. What I did is to create another class
A.OtherLink
{
color: #ffffff;
font-family: Arial, Helvetica, sans-serif;
font-style: normal;
}
And I put code like <a class="OtherLink" href=""> or <a
class="A.OtherLink" href="">, none of them worked. New class cannot
overwrite global settings.

Anybody has some ideas?
 
K

Karl

you aren't overriding the global class, try a.otherLink:Link or change your
global class from A:Link to simply A

Karl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top