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
z-index ignored by IE
Old 04-11-2006, 07:06 PM z-index ignored by IE
metho's Avatar
Ultra Talker

Posts: 481
Location: Gold Coast - Brisbane QLD, Australia
Trades: 0
The nested list menu on this page requires the child lists to be a higher z-index than the parent list. This is taken care of in the CSS and FF & NN displays the menu properly.

However IE needs a javascript helper to change the css display property to block when the applicable li is moused over.
Code:
activateMenu = function(nav) {

    /* currentStyle restricts the Javascript to IE only */
	if (document.all && document.getElementById(nav).currentStyle) {  
        var navroot = document.getElementById(nav);
        
        /* Get all the list items within the menu */
        var lis=navroot.getElementsByTagName("LI");  
        for (i=0; i<lis.length; i++) {
        
           /* If the LI has another menu level */
            if(lis[i].lastChild.tagName=="UL"){
            
                /* assign the function to the LI */
             	lis[i].onmouseover=function() {	
                
                   /* display the inner menu */
                   this.lastChild.style.display="block";
                }
                lis[i].onmouseout=function() {                       
                   this.lastChild.style.display="none";
                }
            }
        }
    }
}


The menu works fine except the child li's are under the parent li's.

Changing the JS function to also increase the z-index of the applicable node doesn't change anything. Any ideas on how to get IE stack these elements correctly?
__________________
I do
Please login or register to view this content. Registration is FREE
based.
Spend a lot of time in
Please login or register to view this content. Registration is FREE
.
And
Please login or register to view this content. Registration is FREE
chews up the rest.
metho is offline
Reply With Quote
View Public Profile Visit metho's homepage!
 
 
Register now for full access!
Old 04-11-2006, 07:20 PM Re: z-index ignored by IE
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
I'm not sure if this will work, but I noticed you have a z-index of 99 on both #nav ul and #nav ul ul. I'm thinking if you give #nav ul ul a higher z-index it will work. Not 100% sure, but certainly easy enough to try.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 04-11-2006, 07:52 PM Re: z-index ignored by IE
metho's Avatar
Ultra Talker

Posts: 481
Location: Gold Coast - Brisbane QLD, Australia
Trades: 0
Have already tried giving each ul a z-index and also setting #nav ul, #nav ul ul to z-index: auto; All ul's are positioned so I don't see why this rule is being igored by IE...
__________________
I do
Please login or register to view this content. Registration is FREE
based.
Spend a lot of time in
Please login or register to view this content. Registration is FREE
.
And
Please login or register to view this content. Registration is FREE
chews up the rest.
metho is offline
Reply With Quote
View Public Profile Visit metho's homepage!
 
Old 04-11-2006, 10:01 PM Re: z-index ignored by IE
metho's Avatar
Ultra Talker

Posts: 481
Location: Gold Coast - Brisbane QLD, Australia
Trades: 0
Turns out to be an IE z-index relative/absolute bug. Too hard to code around...
__________________
I do
Please login or register to view this content. Registration is FREE
based.
Spend a lot of time in
Please login or register to view this content. Registration is FREE
.
And
Please login or register to view this content. Registration is FREE
chews up the rest.
metho is offline
Reply With Quote
View Public Profile Visit metho's homepage!
 
Old 04-17-2006, 07:16 PM Re: z-index ignored by IE
carterdea's Avatar
Ultra Talker

Posts: 353
Location: Arizona
Trades: 0
I had a similar problem, only with IE ignoring my z-index when trying to place an inline h1 tag over a margin above it.
carterdea is offline
Reply With Quote
View Public Profile Visit carterdea's homepage!
 
Old 04-17-2006, 07:30 PM Re: z-index ignored by IE
Junior Talker

Posts: 3
Trades: 0
I have similar problems.

When running some special JavaScript it magicaly puts the div in the background.
Uppdate the div and it comes back farward.

Im also using relative position on my div....

Do you have a sulution on how to work around it?

my link: http://ilemyr.no-ip.org/film/test.php

press link: Egna filmer
then any other link : Skapa TV-serie
then back to : Egna filmer

poff, div goes to the background....
the link: Egna filmer does in no way target the div that looses its position...
The link b4: Skapa TV-serie does thoe....


I so would like to sort this out.. -smile-
Ofcuase, only do this in IE. Firefox looks greate
MrTazz is offline
Reply With Quote
View Public Profile
 
Old 04-18-2006, 08:59 AM Re: z-index ignored by IE
Junior Talker

Posts: 3
Trades: 0
I have now worked around it using cut images and tabels...
Sad that you cant use div due to IE buggs... =/
MrTazz is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to z-index ignored by IE
 

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.93458 seconds with 12 queries