Forum Moderators: not2easy

Message Too Old, No Replies

anchor (link) settings conflicting with other classes

colors set by class not overriding A: settings in NN

         

indiatogether

10:20 pm on Oct 1, 2004 (gmt 0)

10+ Year Member



In my stylesheet, I've got this at the beginning of the css file, ...

a:link {text-decoration: none; }
a:visited {color: #990000; text-decoration: none;}
a:hover {color: #990000; text-decoration: none;}
a:focus {color: #990000; text-decoration: none; }
a:active {color: #990000; text-decoration: none; }

and further down, I've got this

.nbtd3 {font: 11px verdana, arial, sans-serif; font-weight: bold; text-indent: 0; background-color: #eeeeee; color: #000000;}
a.nbtd3:link {color: #000000;}
a.nbtd3:visited {color: #000000;}
a.nbtd3:hover {color: #cc0000;}

-------

What i want is for linked text defined by the nbtd3 class to show up in black normally, but change to cc0000 when you hover over it. I also want it to remain black when the link has been visited.

I have two different stylesheets, one for IE and one for NN.

The IE stylesheet does what I'm looking for. To see what I mean, visit www.indiatogether.org and look for the word "Agriculture" on the left hand side. It will appear in black, change color is you hover, but not change color if you visit the link and come back to the page.

Now do the same thing in Netscape or Firefox. I can't get the same effect. The font class set for the word "Agriculture" is nbtd3, and i've cut the relevant portion of the css file for this element into this note (see top of this posting).

Any help will be much appreciated. I realise the problem stems from the way NN treats the link class settings, and I looked through a bunch of stuff to figure this out, but to no avail. I found the problem described here, but despite much tweaking on my part, i didn't stumble on the right solution.
[richinstyle.com...]
- AM

indiatogether

11:17 pm on Oct 1, 2004 (gmt 0)

10+ Year Member



i just realised that the forum itself has this property. The links for each of our posts is black. When we hover over a link, a yellow blackground appears. But even after visiting a link, the appearance of the link doesn't change.

So, maybe there's a clue to what I'm looking for in the CSS file for this site itself! Moderator/webmaster?

- A