Jump to content

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


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
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.