User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 427,111 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,107 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 2107 | Replies: 1
Reply
Join Date: Oct 2006
Posts: 5
Reputation: rachaelmom is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
rachaelmom rachaelmom is offline Offline
Newbie Poster

opera problems with hover menu

  #1  
Oct 30th, 2006
Hi,

I am using a CSS hover menu (with a IE fix) to navigate a website. It is working fine in all browsers except for Opera for Windows (and possibley old version of NN). What happens is the menu opens up and works fine unless there is other html that appears below it. When there is other html below the menu will appear but as you drag your mouse down if there happens to be any text underneath it the menu will close. I assume it's a layering sort of problem (although it's strange it only happens in opera). I can't really assign a layer to the menu links or the html underneath because it causes all sorts of positioning problems (position:absolute causes some ugly effects). Any ideas?

I can't attach the pages because there is stuff on them I can't share, but below I will copy some of the CSS stuff. You will see some strange z-indexing in an attempt to get it to work (I failed).

Thank You

[html]/* Center or main content */
#centerDoc {
width: 800px;
position: absolute;
z-index: -11;
top: 140px;
left: 165px;
background-color: #FFFFFF;
height: auto;

}

#centerdoc h2, #left h2 {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 18px;
font-weight: bold;
color: #FF0000;
border-bottom: 1px solid #000066;
z-index: 1;
}


/* Menu CSS */


#menu {
width: 100%;
background: #000066;
float: left;
position: absolute;
top: 90px;
z-index: 10;
padding: 0px 0px 0px 5px;


}
#menu ul {
list-style: none;
margin: 0;
padding: 0;
width: 6em;
float: left;
z-index: 10;


}

#menu a, #menu h2 {
font: bold 11px/16px arial, helvetica, sans-serif;
display: block;
margin: 0;
padding: 2px 3px;
z-index: 10;


}

#menu h2 {
color: #fff;
background: #000066;
text-transform: uppercase;
z-index: 10;

}


#menu a {
color: #FFFFFF;
background: #000066;
text-decoration: none;
z-index: 10;


}
/* #menu a {
color: #000066;
background: #efefef;
text-decoration: none;
z-index: 13;

}*/

#menu a:hover {
background-color: #FFFFFF!important;
color: #FF0000!important;
z-index: 13;
}

/*Positioning the Popout and Drop Down Menue */
#menu li {
position: relative;
z-index: 14;
border: 2px solid #000066;

}


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

#menu ul ul ul {
top: 0;
left: 100%;
z-index: 14;
}

/* hiding and re-hiding */
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;}[/html]
Last edited by tgreer : Oct 30th, 2006 at 3:31 pm. Reason: code tags were missing
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2006
Location: Utrecht, The Netherlands
Posts: 9
Reputation: BudBrocken is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
BudBrocken BudBrocken is offline Offline
Newbie Poster

Re: opera problems with hover menu

  #2  
Oct 31st, 2006
Could you post a dummy html page with all your css and javascript in it? Then it will be a lot easier to get some answers I guess
www.rozengain.com - Web Development Blog
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 6:02 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC