Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-27-2009, 01:37 PM   PM User | #1
tonyg
New to the CF scene

 
Join Date: Feb 2009
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
tonyg is an unknown quantity at this point
IE7 issue - menu choice stays highlighted when it should not

Hi,
I have a problem with IE (Firefox is not behaving this way). the site is
http://wwwstage.ultra-fei.com

If you go there, click on a top nav menu choice, then click on another top
level nav choice...then hit the back button. You should see both top level
nav choices highlighted. This does not happen if you repeat in Firefox and
does not seem to matter what menu choices you choose.

If you mouse over the choices, the ghost menu choices does not go away, but
if you right click on the page, the menu choice goes way......I am pulling my
hair out.....

If anyone could help or point me in the right direction, I would really
appreciate it.

also,
when i view source on the page, I see this
Code:
<li class="menuactive"><a class="menuactive"
href="http://wwwstage.ultra-fei.com/index.php?page=sales" >Sales</a>
</li>
<li><a
href="http://wwwstage.ultra-fei.com/index.php?page=support" >Support</a>
</li>
while both are showing highlighted (class=menuactive) only one actually is in the source

thanks
tonyg is offline   Reply With Quote
Old 02-27-2009, 02:39 PM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Quote:
If you go there, click on a top nav menu choice, then click on another top
level nav choice...then hit the back button. You should see both top level
nav choices highlighted.
Are you talking about the dotted rectangle outline around those links?
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 02-27-2009, 02:43 PM   PM User | #3
tonyg
New to the CF scene

 
Join Date: Feb 2009
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
tonyg is an unknown quantity at this point
hi,
thanks for responding. not the dotted line around the choice, the background image changes from all black to a graded gold. If you try that in ie7, you should see two choices at the same time highlighted.

that make sense?
tonyg is offline   Reply With Quote
Old 02-27-2009, 02:54 PM   PM User | #4
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Um... I see it now. I'd recommend you to remove/comment the :hover properties from your li elements, and then depend only on the :hover properties of anchors. This way, you will be able to avoid all duplicate/unwanted rules from your CSS, and thus the bug tracking would be easier.
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 02-27-2009, 03:01 PM   PM User | #5
tonyg
New to the CF scene

 
Join Date: Feb 2009
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
tonyg is an unknown quantity at this point
ok, i think i commented them all out, could you take another look. did not seem to make a difference for the issue.

thanks
tonyg is offline   Reply With Quote
Old 02-27-2009, 03:13 PM   PM User | #6
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello TonyG,
Have a look here http://jigsaw.w3.org/css-validator/v...3Dcontact-us-2

Doubt that's it, just looks like some things didn't quite get commented out.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Old 02-27-2009, 03:26 PM   PM User | #7
tonyg
New to the CF scene

 
Join Date: Feb 2009
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
tonyg is an unknown quantity at this point
ok, sorry about that. it now passes validation.
tonyg is offline   Reply With Quote
Old 02-27-2009, 03:30 PM   PM User | #8
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Have a try by adding
Code:
#primary-nav a:link{
background:none;
}
into your CSS.
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 02-27-2009, 03:33 PM   PM User | #9
tonyg
New to the CF scene

 
Join Date: Feb 2009
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
tonyg is an unknown quantity at this point
humm, no love
tonyg is offline   Reply With Quote
Old 02-27-2009, 03:51 PM   PM User | #10
tonyg
New to the CF scene

 
Join Date: Feb 2009
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
tonyg is an unknown quantity at this point
hey, i just found this....is this my issue?

http://www.sitepoint.com/forums/showthread.php?t=584947
tonyg is offline   Reply With Quote
Old 02-27-2009, 03:56 PM   PM User | #11
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Quote:
hey, i just found this....is this my issue?
No. Just try the following too.
Code:
#primary-nav a:link, #primary-nav a:visited{
background:none;
}
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 02-27-2009, 03:59 PM   PM User | #12
tonyg
New to the CF scene

 
Join Date: Feb 2009
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
tonyg is an unknown quantity at this point
still no love
tonyg is offline   Reply With Quote
Old 02-27-2009, 04:14 PM   PM User | #13
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
How about
Code:
#primary-nav a:link, #primary-nav a:visited{
 background-image: url(uploads/images/menuoff.jpg);
}
/* this turns on the background image for third-level items as well */
#primary-nav a:hover {
   background-image: url(uploads/images/menuon.jpg);
   color:white;
   background-Repeat:no-repeat;
}
#primary-nav a:active{
background-image: url(uploads/images/menuoff.jpg);
}
#primary-nav a.menuactive{
           background-image: url(uploads/images/menuon.jpg);
		color:white;
		background-Repeat:no-repeat;
}
?
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Users who have thanked abduraooft for this post:
tonyg (02-27-2009)
Old 02-27-2009, 04:39 PM   PM User | #14
tonyg
New to the CF scene

 
Join Date: Feb 2009
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
tonyg is an unknown quantity at this point
wow, i think that worked....

being a newbie, i am not sure i understand what is going on, maybe you could explain

Code:
#primary-nav a:active{
background-image: url(uploads/images/menuoff.jpg);
}
this would seem to say that when the anchor is active, then the background image will be off.......but that is not what happens...right?

but in any case....i REALLY appreciate the help

thanks so much!!!!
tonyg is offline   Reply With Quote
Old 03-07-2009, 05:13 AM   PM User | #15
tonyg
New to the CF scene

 
Join Date: Feb 2009
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
tonyg is an unknown quantity at this point
hi,
I am not sure if you are still listening...but I just noticed another issue, teh fix seemed to make IE7 work, but now, IE6 is not right....any change you can take another look with ie6?

thanks
tonyg is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:31 AM.


Advertisement
Log in to turn off these ads.