?
Solved

IE suckerfish problem

Posted on 2006-10-22
4
Medium Priority
?
552 Views
Last Modified: 2012-06-27
On this page you can see that IE ignores the z-index of the suckerfish dropdown and I can see the text over the dropdown

http://blue-fly.co.uk/trisco/test.php

the css

http://www.blue-fly.co.uk/trisco/css/


It is fine on safari and firefox.



Any ideas?
0
Comment
Question by:roscoeh23
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 4

Expert Comment

by:Oneiroid
ID: 17785713
Please post some code.

If you are using the same model as in the suckerfish examples, try adding:

#nav * {
      z-index: 999;
}

This works for all browsers I've tried it on. It won't work if your offending overlapping divs if they have a z-index greater than 999 though ;)  Check that out too.
0
 

Author Comment

by:roscoeh23
ID: 17787299
This doesn't work. I have also created an absolute version where everything inside the main (relative) container is absolutely positionined and contains z-indexes but ie 6 still ignores this.


http://www.blue-fly.co.uk/trisco/abs.php


http://www.blue-fly.co.uk/trisco/css/abs.css
0
 
LVL 20

Expert Comment

by:dsacker
ID: 17789167
You don't need to post code. This is a well-known error. IE sets an unbeatable z-index on the <SELECT> drop down object.

Some (certainly not all) of the ways you can defeat that are to (1) put it out of the way of your drop down menu, or (2) embed your <SELECT> drop down in an IFRAME (yeah, I know ... yuk).

FireFox and Safari behave properly on this one.
0
 
LVL 4

Accepted Solution

by:
Oneiroid earned 2000 total points
ID: 17789904
dascker: roscoeh23 does not seem to be having any problems with a select element.

roscoeh23: the first thing that I notice, is that it your list has an id of 'nav', but you have no nav style in your CSS. Rather, you are designating the styles under #header instead? This is why my previous suggestion wouldn't have worked for you. Try this instead:

#header * {
     z-index: 999;
}

Although, li ul is not designated with #header. Make sure to fix this (also for consistency). It seems that you have IDs on some of your li tags for some reason.

Additionally, you are having this same overlap issue between menu items. You will have to address the z-index values here, too, or have them open below the node. Now, I am look at this on IE7. When I look at it on IE6, the menus do open below the node but I cannot navigate to them. You are going to have to apply the IE fix to your menu as well.

I think to make your menu completely browser cross-compatible, you should revisit the original suckerfish article. I am running a few of these menus now and have never had x-comp problems like this. Also, take a look at the consistency of your CSS.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
Suggested Courses
Course of the Month10 days, 19 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question