2 replies [Last post]
trackfive
Offline
newbie
Last seen: 18 years 3 weeks ago
Joined: 2004-09-08
Posts: 2
Points: 0

Hi,

I'll start off by saying, I did NOT do this site design, so please forgive me for its gastliness. I'm producing the code for it for someone else. Anyway, here is the link...

http://www.atlanticeyecenter.com/redesign

Problem I'm having is the menu on the left side of the screen. In every browser except IE on XP, the a.current for the current link is working. When you click on a section from that menu, the current page is highlighted accordingly. Look at it in any other browser besides IE on XP and you'll see what I'm referring too. I've tested it in Firefox, Mozilla, Camino, Netscape, Safari, Opera, IE (mac)...

here is the link to the css sheet...

http://www.atlanticeyecenter.com/redesign/css/styles.css

It's this line...

#left-menu a.current {background-color: #398461 }

Here is a link to the js that I wrote that writes the menu on the page...

http://www.atlanticeyecenter.com/redesign/js/menu_scripts.js

Does anyone have any solutions for this problem???

TIA

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 5 days 13 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

CSS a.current menu problem...need help!

Hi trackfive,
It looks as though IE may be giving more weight to the visited pseudo class then the current class.
Here's a way you can fix it#left-menu a.current {background-color: #398461 !important; }

Hope that helps[/code]

trackfive
Offline
newbie
Last seen: 18 years 3 weeks ago
Joined: 2004-09-08
Posts: 2
Points: 0

CSS a.current menu problem...need help!

Tony wrote:
Hi trackfive,
It looks as though IE may be giving more weight to the visited pseudo class then the current class.
Here's a way you can fix it#left-menu a.current {background-color: #398461 !important; }

Hope that helps[/code]

Perfect. Works now. Thank you very much Tony!