![]() |
Menu Display Problem in IE6+
I've implemented the AnyLink menu that's on DynamicDrive, but have made some minor changes to fit the design. Everything looks solid in FF, Opera and Safari. However, the devil (IE) has a problem displaying the menu at the top.
When I hover over a menu button, a dropdown selection menu appears. It shows up in IE properly except for the fact that it's behind the content divs! I assumed I could fix this by adding some z-index values to the coding for the content and menu divs, but it did not help and I continue to have the display issue in IE. I would appreciate any help/suggestions on this. I'm just at a dead-end with it up to this point. See the site live: The Winter Series - News CSS for the menu area. Excuse the sloppiness, I'll clean it up later: Code:
#ja-mainnav { position: relative; background-image: url(xx/xx/xx.jpg); height: 184px; } |
z-index only works when you define a position, so try this:
Code:
#ja-mainnav { position: relative; background-image: url(xx/xx/xx.jpg); height: 184px; } |
Doh! I didn't even think about that.
Yea, sorry for the messy css. Thanks for the reply! |
Hmm.. didn't fix the problem, but it has maybe put me in the right direction. =)
|
I don't know about the problem, but you can clean up your css a lot, for example you can replace this:
Code:
border-left: 1px solid #333333;Code:
border: 1px solid #333333;Code:
border: 1px 2px 0 4px solid #ccc;You can also combine the fonts stuff in one line: font: 1.1em arial, sans-serif; And finally you can lose a lot of code for the menu items, first define the things that are the same in one piece of code like this: Code:
#anylinkmenu1, #anylinkmenu2, #anylinkmenu3I had a look in IE and I see what's wrong now, but besides being behind those div's, I can't click on the links in IE either so that's another potential issue.. Are you sure this is caused (and can therefore be fixed) with css? Is there any javascript involved? |
Yea, there's some javascript in involved with the menu.
Code:
var menubgcolor='#000000' //menu bgcolor |
I give up on trying to fix this issue.
*sends hatemail to microsuck* |
Sd@*&%*%#@@!!!!!!!!!!!!!
|
Why don't you just replace it with the son of suckerfish menu? That works very well. Suckerfish sometimes need this line in the css to solve a similar problem to what you have had however. li:hover{visibility:visible}
|
Quote:
![]() |
lol @ piechart
The reason I didn't want to switch menu setups is because the site (designed by me, coded by someone else) is hard-coded. Perhaps if I posted the code, it'd give you a better idea of what I mean by that. =) Anyway, someone that helped with the site fixed the issue this morning. IE apparently has issues with Z-index settings. |
btw thanks all =)
|
hahaha that pie chart is pretty much bang on target.
|
Hi Obolus,
I am also facing the similar problem for IE. that the menu is behind the content. Could you tell me what was the fix for this. Some thing with Z-Index? Nishant --------------------------------- Quote:
|
Here is the updated CSS, sebastian. It's still messy as hell. =(
There are changes in z-index values (just compare to my first post). Code:
#ja-mainnav { position: relative; background-image: url(../images/s_header.jpg); height: 184px;z-index: 3000; } |
| All times are GMT. The time now is 10:10 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0