Inconsistant behavior

Greg K's picture

He has: 2,145 posts

Joined: Nov 2003

Hello, I was attempting to build a menu, and made the following file to get the code for the table:

http://www.wtvgames.com/submenu-build.html

However, for some reason the hover effects is not working consistently in IE 6 and Firefox.

What's more, when viewed on the actual final web server (it is a secure server which is why I placed a copy on my personal server), different links highlight differently than on the other server.

I did both CSS and HTML validation, and it came out fine.

Currently, in firefox, all hovers are working, however on the other server, the "Compare" will not have the hover effect.

In IE 6, on my server, right now I'm getting "Compare" and "Program Features" not hovering right., and on the other server, "Start", "Compare" and "Testimonials" do not hover right.

This has me puzzled, as all the links are designed the exact same (other than Compare's TD has a different class to produce the green arrow).

At first I thought it was when I copied the table code and CSS into my program that something went bad, however, even this basic page I built it in is giving me this same problem. So that led me to think I coded the CSS incorrectly... However validation says it is fine...

I'm really stumped!!!!!

Any help would be appreciated. Thank you.

-Greg

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

They all look the same to me in Firefox, IE6 and Opera 7.5. Try switching the order of your style rules so that hover comes after visited. I had to look this up - according to W3Schools "Note: a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective!!"

That might help. I know I've used that to solve problems with hovers in the past.

Greg K's picture

He has: 2,145 posts

Joined: Nov 2003

Thank you Megan!

I changed that for this menu and another one (after checking it was messing up as well), and now that hover is last, all of them seem to be working fine now! If that is manditory to be in that order, I wonder why they don't check that when you validate CSS....

Again thank you! I was beinging to think it was another quirk thanks to SP2 for XP.

-Greg

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.