On 7 Nov 2004, at 6:20 AM, helmut wrote:

Simple question

I had set up a pseudo-class like this

a.sub:link { property } ....
a.subTwo.link { property }...

It was working fine until I decided to define a global anchor pseudo-class

a.link { property } ...
a.sub:link { property } ....
a.subTwo.link { property }...

Now sub and subTwo have inherited the a class properties even though I had
declared individual properties for each one of them and applied directly to
links, for example:


<a href="#" class="subTwo">Link Goes Here</a>

Could some one give me a hint?

Try a:link instead of a.link for your global rule. What you have is not a pseudo-class; it defines a rule for all <a> tags with the class 'link'.


Also, it depends what you have actually defined for each rule where you just say 'property'. Do you have a URL to a page where we can see the problem in action?

N
___________________________
Omnivision. Websight.
http://www.omnivision.com.au/

******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************



Reply via email to