FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » visited link style overrides hover link style  () 1 Vote
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
visited link style overrides hover link style [message #1358] Tue, 09 April 2002 16:32 Go to next message
snafu is currently offline  snafu   United States
Messages: 27
Registered: April 2002
Karma: 0
Junior Member
Admin Control Panel > Appearance Management > Style Manager

Situation:
I've copied the default styles and customized the "Link MouseOver color".

Expected results:
the mouseover style should apply to both visited and unvisited links.

Actual Results:
style only works for unvisited links.

Possible cause:
The fact that a:hover style rules are placed above a:visited in the stylesheet. Sinse a:visited is the last rule declared, it overrides the a:hover styles.

I think that people expect the behavior where hover styles apply to visited and unvisited links. Any way I can fix this?
Re: visited link style overrides hover link style [message #1359 is a reply to message #1358] Tue, 09 April 2002 16:35 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Actually the order of the style sheets does not matter in this case. The nature of css is such that visited link will ALWAYS overwrite the mouseover color. You can test this yourself.

The solution that "could" work would be to clear out the a:visited class.


FUDforum Core Developer
Re: visited link style overrides hover link style [message #1361 is a reply to message #1358] Tue, 09 April 2002 16:51 Go to previous messageGo to next message
snafu is currently offline  snafu   United States
Messages: 27
Registered: April 2002
Karma: 0
Junior Member
Thanks for the fast response.

Just did a quick test:

1) Saved the page using my browser's "save as" feature.

2) Opened saved version in browser, confirmed that visited links still didn't manifest :hover styles.

3) Opened page in text editor, found stylesheet, moved a:hover below a:visited.

4) Reloaded browser.

5) Confirmed that visited links now manifest :hover styles.

I've read in various places that it's standard practice to put :hover styles after :link, :visited, and :active. Don't know if this is necessary because of imperfect CSS implementation in current browsers, but necessary nonetheless.

My browser:
Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.9) Gecko/20020311
(Mozilla 0.9.9)
Re: visited link style overrides hover link style [message #1362 is a reply to message #1358] Tue, 09 April 2002 17:28 Go to previous messageGo to next message
snafu is currently offline  snafu   United States
Messages: 27
Registered: April 2002
Karma: 0
Junior Member
Also confirmed this test in IE5.
Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
Re: visited link style overrides hover link style [message #1363 is a reply to message #1362] Tue, 09 April 2002 17:42 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Thanks for the report, I'll make proper modifications to handle this situations.

On your install, edit your header_*.inc files located in the settings directory and change the order of the CSS.


FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Strange Netscape login behaviour
Next Topic: "Private Messaging" link style inconsistent with others
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 06 19:25:35 GMT 2024

Total time taken to generate the page: 0.02595 seconds