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
https://forums.phpfreaks.com/topic/51787-best-order-for-anchor-styles/
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.

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.