Jump to content

Best order for anchor styles


Yesideez

Recommended Posts

Morning all, here's my styles:

 

a:link {color: #e0ffe0; text-decoration: none;}
a:active {color: #80ff80; text-decoration: none;}
a:visited {color: #e0ffe0; text-decoration: none;}
a:hover {color: #40ff40; text-decoration: none; cursor: pointer}
a.menu:link {font: 10px verdana; color: #e0ffe0; text-decoration: none;}
a.menu:active {font: 10px verdana; color: #80ff80; text-decoration: none;}
a.menu:visited {font: 10px verdana; color: #e0ffe0; text-decoration: none;}
a.menu:hover {font: 10px verdana; color: #40ff40; text-decoration: none; cursor: pointer}

 

A while back I posted similar styles here and was advised that the order I've chosen above isn't the best and I was wondering if someone would be able to advise me as I can't remember what the reason was.

 

Many thanks.

 

Link to comment
Share on other sites

This also might cut down on some time:

a {color: #e0ffe0; text-decoration: none;}
a:hover {color: #40ff40; text-decoration: none; cursor: pointer}

.menu a {font: 10px verdana; color: #e0ffe0; text-decoration: none;}
.menu a:hover {font: 10px verdana; color: #40ff40; text-decoration: none; cursor: pointer}

 

which should give you the same result.

Link to comment
Share on other sites

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.