Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hover Property on Visited Link

Status
Not open for further replies.

AndyFreeman

IS-IT--Management
Mar 22, 2004
70
GB
Hello

I am wondering is it possible to have a "hover" style applied to visited links as i have got it working on unvisited links.

if is possible could you show me an example as i fairly new to CSS

Any help would be much appreciated

Thanks

Andy
 
Hover should work regardless of the state of the link. Maybe you have not put the declarations in correct order and you are experiencing problems because of that. Try this:
Code:
<style type="text/css">
a:link { color: red; }
a:visited { color: blue; }
a:hover { color: #bbbbbb; }
a:active { color: yellow; }
</style>

<a href="#">Link</a>
Hope it helps. Remember, they always have to follow this same order for them to work properly.
 
That is great, it was the ordering that was preventing it from working

Thanks Again

Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top