Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
CSS Menu - Rollout Problem in IE6
Old 05-21-2007, 08:52 PM CSS Menu - Rollout Problem in IE6
NPL Solutions's Avatar
Skilled Talker

Posts: 66
Location: Colorado (USA)
Trades: 0
Hey:

I'm working on a redesign for my site: http://beta.nplsolutions.com/ and everything is working pretty well, but I am having some problems under IE6. The :hover action works great and swaps the image, but when you rollout, the image doesn't go back as it does in IE7, Firefox.

I know there are a plethora of options for this sort of effect in CSS, but I'd like to stick to what I have as much as possible. That being said, I'm using a transparent gif as the "button" which controls the div below it. Taking a look at my source should make this pretty obvious, and I have a stylesheet just for this menu at: http://beta.nplsolutions.com/nav.css

Thanks in advance.

Nicky
NPL Solutions is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-21-2007, 09:58 PM Re: CSS Menu - Rollout Problem in IE6
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
Try changing your id's to classes for "Home", "Company" "Selected Work", and "Contact".
In your css, you have something like "a.home:hover". This is refering to a class, and you have id tags set up.
angele803 is offline
Reply With Quote
View Public Profile
 
Old 05-21-2007, 10:27 PM Re: CSS Menu - Rollout Problem in IE6
NPL Solutions's Avatar
Skilled Talker

Posts: 66
Location: Colorado (USA)
Trades: 0
Good eye! I see exactly what you're talking about. (The div's are declared in another CSS file, so I changed the name of the anchor classes I was referring to.) Unfortunately, even after giving the classes a more unique name, the problem persists in IE6. (I've changed everything back the way it was before, no sense in having extra code, right?)

Thanks!

Nicky
NPL Solutions is offline
Reply With Quote
View Public Profile
 
Old 05-22-2007, 09:44 AM Re: CSS Menu - Rollout Problem in IE6
HighVoltage123's Avatar
Ultra Talker

Posts: 262
Trades: 0
Why don't you putt everything in one css file (just to avoid confrontations)
HighVoltage123 is offline
Reply With Quote
View Public Profile Visit HighVoltage123's homepage!
 
Old 05-22-2007, 02:29 PM Re: CSS Menu - Rollout Problem in IE6
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Ok, here's a couple of suggestions.
1 - there is no reason to use multiple divs for that menu, you really should put it in an unordered list - that is, after all, what it is.
2 - You have defined the a:hover state, but you have NOT defined a default a:link state nor the a:active or a:visited states. You'll need to define at least the a:link as well as the a:hover in order for things to work properly.

You must also define them in a specific order: Link, Visted, Hover, Active - just remember LoVeHAte .
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-22-2007, 06:53 PM Re: CSS Menu - Rollout Problem in IE6
NPL Solutions's Avatar
Skilled Talker

Posts: 66
Location: Colorado (USA)
Trades: 0
Quote:
Originally Posted by LadynRed View Post
You have defined the a:hover state, but you have NOT defined a default a:link state nor the a:active or a:visited states. You'll need to define at least the a:link as well as the a:hover in order for things to work properly.
I made the change, but I'm not currently around a computer with IE6; however, isn't the :link state assumed when no other state is defined in an anchor class? Maybe just a finicky IE6 specification?

Thanks.

Nicky
NPL Solutions is offline
Reply With Quote
View Public Profile
 
Old 05-23-2007, 12:26 PM Re: CSS Menu - Rollout Problem in IE6
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Nope, not when you're dealing with pseudo classes.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-23-2007, 10:13 PM Re: CSS Menu - Rollout Problem in IE6
NPL Solutions's Avatar
Skilled Talker

Posts: 66
Location: Colorado (USA)
Trades: 0
I found the solution on the following site:
http://www.quirksmode.org/css/ie6_purecsspopups.html

More or less, I needed to declare a general a:hover state with one of the following states: border, display, position, overflow or background. A simple bit of code got everything working for me:
Code:
a:hover{
border:0px none;
}
Interestingly enough, adding the :link selector actually caused more problems. I have since removed it, but for some reason, it would only show one of the buttons normally, then the hover states for the others once they had been rolled over. I validated the CSS and could find no differences between any of the declarations. Regardless, I think I've got it working now and my thanks go out to everyone who contributed a solution.

Nicky

Last edited by NPL Solutions; 05-23-2007 at 10:14 PM.. Reason: Formatting problem
NPL Solutions is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS Menu - Rollout Problem in IE6
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.30999 seconds with 12 queries