Forum Moderators: open

Message Too Old, No Replies

CSS problem - visited links class not working in Firefox

class not working in Firefox

         

enzedder

10:10 pm on Dec 25, 2007 (gmt 0)

10+ Year Member



I am having an issue trying to get my CSS to display correctly in Firefox. Firefox is not picking up my visted links class and won't display links as having been visited, though this is working fine in IE 6 and 7.
Hovered links are working okay in all browsers so I'm a bit stumped. Any assistance most appreciated.
The CSS section looks like this:

/* Links in the left nav bar */
a.leftnav:link{
color: #FF0000;
font-family: Tahoma,Verdana,sans-serif;
font-size: 30px;
font-weight: 500;
}

/* Visited links in the left nav bar */
a.leftnav:visited{
color: #666666;
font-family: Tahoma,Verdana,sans-serif;
font-size: 30px;
font-weight: 500;
}

/* Links in the left nav bar that are being hovered over */
a.leftnav:hover{
color: #FFFFFF;
font-family: Tahoma,Verdana,sans-serif;
font-size: 30px;
font-weight: 500;
text-decoration: none;
}

tedster

2:08 am on Dec 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello enzedder, and welcome to the forums.

There may be a conflict with other CSS rules, in which case "specificity" is supposed to be used by the browser in deciding which rules should apply. See the W3C page describing the "cascading" part of CSS, and especially the specificty section:

[w3.org...]