Forum Moderators: not2easy
Here's my css:
table.bottom a:link,a:active,a:visited {font-size: 10pt; font-weight: 700; color: #003366; }
table.bottom a:hover {font-size: 10pt; font-weight: bold; color: #6699cc; }
div.faq a:link, a:active, a:visited {color:#003366; font-family:verdana,arial,helvetica,sans-serif; font-size:12pt; font-weight:bold; text-decoration:none;}
div.faq a:hover {color:#6699cc; text-decoration:none;}
Can anyone see anything I missed? I can post my html if you need it.
Thanks!
Let's take a look at part of it:
table.bottom a:link,a:active,a:visited {font-size: 10pt; font-weight: 700; color: #003366; }
What does this mean?
Literally it means: "assign the following style to all anchor links inside a table with class 'bottom', as well as all other active and visited anchors, no matter where they are located".
Since the div.faq selector is formatted the same way, the styles will be applied to all your active and visited anchors.
The correct code should look something like this:
table.bottom a:link, table.bottom a:active, table.bottom a:visited {font-size: 10pt; font-weight: 700; color: #003366; }table.bottom a:hover {font-size: 10pt; font-weight: bold; color: #6699cc; }
div.faq a:link, div.faq a:active, div.faq a:visited {color:#003366; font-family:verdana,arial,helvetica,sans-serif; font-size:12pt; font-weight:bold; text-decoration:none;}
div.faq a:hover {color:#6699cc; text-decoration:none;}
Or, if you want, the following is even shorter:
table.bottom a {font-size: 10pt; font-weight: 700; color: #003366; }table.bottom a:hover {font-size: 10pt; font-weight: bold; color: #6699cc; }
div.faq a {color:#003366; font-family:verdana,arial,helvetica,sans-serif; font-size:12pt; font-weight:bold; text-decoration:none;}
div.faq a:hover {color:#6699cc; text-decoration:none;}