Print Page | Close Window

css a:visited:hover

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=2152
Printed Date: 31 March 2026 at 1:16pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: css a:visited:hover
Posted By: MrCarl
Subject: css a:visited:hover
Date Posted: 26 April 2003 at 4:31am

How come this css entry doesnt actually work? I set my css for links to look like this:

a  {
 color : #FFFF00;
 font-family: Verdana, Arial, Helvetica, sans-serif;
 text-decoration: underline;
 font-size: 13px;
 font-weight: bold;
}

a:hover {
 color : #FF0000;
 font-family: Verdana, Arial, Helvetica, sans-serif;
 text-decoration : underline;
 font-size: 13px;
 font-weight: bold;
}

a:visited {
 color : #FF0000;
 font-family: Verdana, Arial, Helvetica, sans-serif;
 text-decoration : underline;
 font-size: 13px;
 font-weight: bold;
}

a:visited:hover {
 color : #FFFF00;
 font-family: Verdana, Arial, Helvetica, sans-serif;
 text-decoration : underline;
 font-size: 13px;
 font-weight: bold;
}

Which is norm link = yellow with red hover
&
visited link = red with yellow hover

But what actually happens is the hover for both normal and visited links just turn yellow and it ignores the a:hover css

Any idea's why?

- Carl S




Replies:
Posted By: WebWiz-Bruce
Date Posted: 26 April 2003 at 4:39am

Looks like you got visted and visted hover around the wrong way.

Check up on some CSS sites if you are unsure how it works.



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: MrCarl
Date Posted: 26 April 2003 at 5:12am

I have trawled the web, and changed them into every different possible order!! tried loads of ways... and still nothing (though in netscape it works fine...

I actually now dont believe it is possible to have two different hover colours for visited and unvisited links in IE... Most sites just use the same colour, like for example here on this forum...

If anyone can prove me wrong then please do!! This is a dead simple thing which is causing me to tear my hair out!!

- Carl S

 



Posted By: Dergal
Date Posted: 26 April 2003 at 11:09am

 

IE caches the CSS files (linked) so do a hard refresh! (CTRL and f5) took me ages to learn that...

HTH's

Gerry




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net