Jump to content

very basic CSS question that I probably should know - Re LINKS


liam1412

Recommended Posts

<style type="text/css>

a            {font-family: "trebuchet ms",verdana;
              font-size: 12px}

a:link      {color:"#b5b5b5"}
a:visited  {color:"#b5b5b5"}
a:hover    {color:"#ff0000"}

</style>

So I want the visited link to be the same colour as normal link. But I still want the hover to work.  Maybe it is my browser (IE7) that is doing this but I can't see no reason wht it shouldn't.

Like I said if I leave a:link and a:visited as the defaults then the hover still works regardless of wether the link is visited or not.????? But of a puzzler for me.
     
<style type="text/css>

a
{
font-family: "trebuchet ms", verdana;
font-size: 12px;
color: #b5b5b5
}

a:hover
{
color: #ff0000;
}

</style>

Should do the trick; I would advise using a better set of fonts though!
As if i didn't think of not needing to declare my a:visited seperate.  My My I am having a numpty day. Can only mean one thing.  37 hours at my desk looking at a compurter screen as taken its toll. Thank god its the weekend.  Mind you im only going to go home and work on my web site some more!!!!!

Thanks for that
Liam

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.