WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Graphics & Design Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-21-2007, 10:36 AM
trancehead trancehead is offline
WebProWorld New Member
 

Join Date: Sep 2005
Posts: 21
trancehead RepRank 0
Default Whatever:Hover doesn't work in IE7

Does anyone know why IE7 has problems with whatever:hover?

You can see the problem at www.cybercellar.co.za with the wine list menu. If you hover the Red section it should (and does in IE 6 and FF) show a flyout menu of the different Reds (Cabernet Sauvignon, etc). In IE7 as soon as you mouseover the Red item the whole menu disappears.

I am currently using conditional comments so IE7 shouldn't even be affected by this (and I don't think it's the csshover.htc). Is there anything that anyone can see in the css section that could be causing this. The CSS is below:

<style type="text/css" media="screen">

#menu {
position: absolute;
background: #DEDAAC;
float: left;
padding-left: 2px;
padding-right: 2px;
padding-top: 0px;
padding-bottom: 0px;
z-index: 50;
height: 24px;
text-align: left;

}

#menu ul {
list-style: none;
margin: 0;
float: left;
padding: 0px;
text-align: left;
}

#menu a {
color: #781F61;text-decoration: none;
display: block;
margin: 0;
padding-left: 2px;
padding-right: 2px;
padding-top: 5px;
padding-bottom: 5px;
background: #DEDAAC;
text-decoration: none;
text-align: left;
}

.DropBorders li { border-left: 1px solid #98956D;border-right: 1px solid #98956D; font-weight: normal; border-bottom: 1px solid #98956D; }
// This is for each "flyout menu"

#menu a:hover {
color: #6F2627;
background: #F4F2DF;
}

#menu li {position: relative;}

#menu ul ul {
position: absolute;
z-index: 500;
}

#menu ul ul ul {
position: absolute;
top: 0;
left: 100%;
}

div#menu ul ul,
div#menu ul li:hover ul ul,
div#menu ul ul li:hover ul ul
{display: none;}

div#menu ul li:hover ul,
div#menu ul ul li:hover ul,
div#menu ul ul ul li:hover ul
{display: block;}

}
</style>
__________________
www.cybercellar.com - Buy South African wine online
Reply With Quote
  #2 (permalink)  
Old 05-21-2007, 02:52 PM
dharrison's Avatar
dharrison dharrison is offline
Moderator
WebProWorld Moderator
 

Join Date: May 2005
Location: Essex, UK
Posts: 1,394
dharrison RepRank 3dharrison RepRank 3
Default Re: Whatever:Hover doesn't work in IE7

Hi trancehead

I sympathise! I am using the same drop-down menu (after a bit of re-styling) on my new website.

At a glance I'd say your CSS is OK. if we are being picky I would say lose the float: left function under the #menu and add left: 0px. I recall having issues with float when I was customising my menu.

I think it is to do with the csshover.htc because because it was set up so IE can support it http://www.xs4all.nl/~peterned/csshover.html

but having said all of that, I have just opened it up in IE7 and its working fine for me. have you tried Ctrl and F5 a couple of times to refresh the page?

HTH. Re-post or PM me if I can help further.

Thanx
__________________
Deb Harrison
DVH Design
Essex Web Design | Web Design Blog
Reply With Quote
  #3 (permalink)  
Old 05-21-2007, 10:55 PM
getmea getmea is offline
WebProWorld Pro
 

Join Date: Aug 2006
Location: Cary, Illinois
Posts: 153
getmea RepRank 0
Default Re: Whatever:Hover doesn't work in IE7

I just installed IE7 over the weekend and must say the same thing is happening to me - the rentire menu disappears. Sorry, I'm not a CSS expert nor moderate. If it is not happening to dharrison, IS it s CSS issue?
__________________
Skateboards and iPods...what a combination!
http://www.getmea-skateboard.com
Reply With Quote
  #4 (permalink)  
Old 05-22-2007, 02:45 AM
trancehead trancehead is offline
WebProWorld New Member
 

Join Date: Sep 2005
Posts: 21
trancehead RepRank 0
Default Re: Whatever:Hover doesn't work in IE7

Hi,

csshover was originally to get IE6 and below to do the whole :hover thing properly.

The thing is it works fine in IE6 and I have reworked it slightly (using conditional comments) to not be called by IE7.

Apparently it should work just fine in IE7 without the Javascript but as usual IE won't play fair.

I don't understand why it works for some and not for others. It is most frustrating.
__________________
www.cybercellar.com - Buy South African wine online
Reply With Quote
  #5 (permalink)  
Old 05-22-2007, 04:18 AM
dharrison's Avatar
dharrison dharrison is offline
Moderator
WebProWorld Moderator
 

Join Date: May 2005
Location: Essex, UK
Posts: 1,394
dharrison RepRank 3dharrison RepRank 3
Default Re: Whatever:Hover doesn't work in IE7

I must confess, I have given the layout on mine a lot of tweaking.

The main issue I found in IE7 was the positioning of the sub-menus would veer off to the right and disappear under the main menu bar. Thats why I lost the float: function on the main menu bar.

Getmea - I mod because some of the info I have given on the forums has been very good. At the end of the day, I am still learning, just like everyone else. I don't always get it right, but who does?
__________________
Deb Harrison
DVH Design
Essex Web Design | Web Design Blog
Reply With Quote
  #6 (permalink)  
Old 05-22-2007, 04:37 AM
trancehead trancehead is offline
WebProWorld New Member
 

Join Date: Sep 2005
Posts: 21
trancehead RepRank 0
Default Re: Whatever:Hover doesn't work in IE7

Quote:
Originally Posted by dharrison View Post

The main issue I found in IE7 was the positioning of the sub-menus would veer off to the right and disappear under the main menu bar. Thats why I lost the float: function on the main menu bar.
That's it, you've cracked it. Works like a dream now.
__________________
www.cybercellar.com - Buy South African wine online
Reply With Quote
  #7 (permalink)  
Old 05-22-2007, 04:59 AM
dharrison's Avatar
dharrison dharrison is offline
Moderator
WebProWorld Moderator
 

Join Date: May 2005
Location: Essex, UK
Posts: 1,394
dharrison RepRank 3dharrison RepRank 3
Default Re: Whatever:Hover doesn't work in IE7

Glad to be able to help
__________________
Deb Harrison
DVH Design
Essex Web Design | Web Design Blog
Reply With Quote
  #8 (permalink)  
Old 05-22-2007, 09:23 PM
bj's Avatar
bj bj is offline
WebProWorld 1,000+ Club
 

Join Date: Apr 2005
Location: Delaware Valley, PA
Posts: 1,181
bj RepRank 2bj RepRank 2
Default Re: Whatever:Hover doesn't work in IE7

I know this is crazy, since IE7 is supposed to support hover without the script, but I had the same problem on IE7, changed the code to feed the script to all versions of IE and it worked. Go figure.

YMMV.

For anyone else who does a search and finds this thread, .htc files need to be served by your server as text files. When it isn't served properly it is often the cause of this script malfunctioning. This mime type can be set through your cpanel.
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum
Tags: doesnt, ie7, whateverhover, work



Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IE Hover PARoss Web Programming Discussion Forum 10 05-18-2007 04:37 AM
Hover over Images JuniorOnline Web Programming Discussion Forum 2 03-30-2006 07:42 AM
CSS HOVER-IE candlese Graphics & Design Discussion Forum 3 12-10-2005 09:17 AM
Hover Images WiseWizards Graphics & Design Discussion Forum 5 06-19-2004 01:09 AM
CSS hover links justinw Graphics & Design Discussion Forum 9 03-20-2004 02:48 PM


Search Engine Friendly URLs by vBSEO 3.0.0