Should be easy CSS link styles, but part failing

This is what I’ve got:

<style> <!-- for navbar –>

a.donkey3:link {color: lightcyan; font-size: 12px; text-decoration: underline; }

a.donkey3:visited {color: palegreen; font-size: 12px; font-decoration: underline; }

a.donkey3:hover {color: white; font-size: 12px; background-color: mediumblue; }


The bottom two (visited and hover) work fine. The top is showing regular blue link text rather than lightcyan. Changing to other colors for testing (I used white just now) makes no difference.

I’ve been trying both the add image and attachment buttons above. Neither of them show in preview, leaving me unsure whether the picture will end up visible in the final post. But perhaps somebody can figure out what is going wrong with the code alone.


Here is where the request to display the links is being made:

<?php print "

  &lt;td&gt; &lt;a href=tr_02.php?r=$r class=donkey3&gt;
     &lt;img SRC=../icn/$mail_present border=0&gt;&lt;font size=1&gt;&lt;br&gt;Private&lt;br&gt; Mailbox&lt;/a&gt;&lt;/td&gt;

  &lt;td&gt;&lt;a href=tr_s_q_frm.php?r=$r class=donkey3&gt;

<img SRC=…/icn/search_q.gif border=0><br><font size=1>Quick <br>Search</a></td>

  &lt;td&gt;&lt;a href=tr_s_d_frm.php?r=$r class=donkey3&gt;

<img SRC=…/icn/search_d.ico border=0><br><font size=1>Detailed <br>Search</a></td>

  &lt;td&gt;&lt;a href=tr_fr_disp_fms.php?r=$r class=donkey3&gt;

<img SRC=…/icn/forums2.ico border=0><br><font size=1>Member<br>Forums</a></td>

… cont’d

That’s pretty old code there. You should have quotes around URLs, class names etc., and not use <font> tags etc. so it needs a lot of cleaning up. It’s also better to use hex values for the colors rather than names like that. Normally you don’t need the :link pseudo class.