473,382 Members | 1,375 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

z-index woes with position: relative/absolute in IE 6 (and 7?)

Hi,

I have a site with a heap of small menus in various elements.

It looks something like this (inline style's etc for readability):

<div>

Jan 8 '07 #1
2 5339
On Jan 8, 4:42 pm, drillbatt...@gmail.com wrote:
Hi,

I have a site with a heap of small menus in various elements.

It looks something like this (inline style's etc for readability):

<div>
Weird, Google cut me off! And I wrote such a pretty post!

Here we go again:

I have a site with a heap of small menus in various elements.

It looks something like this (inline style's etc for readability):

<div>
<div>
<h2 style="display: inline;">Some heading</h2>
<div style="position: relative; display: inline;">
<a href="#" onclick="show_the_menu()"><img
src="nasty_image.gif</a>
<!-- this is here the menu is created -->
</div>
<div>
<h2 style="display: inline;">Some heading</h2>
<div style="position: relative; display: inline;">
<a href="#" onclick="show_the_menu()"><img
src="nasty_image.gif</a>
<!-- this is here the menu is created -->
</div>
</div>
</div>
<div>
<h2 style="display: inline;">Some heading</h2>
<div style="position: relative; display: inline;">
<a href="#" onclick="show_the_menu()"><img
src="nasty_image.gif</a>
<!-- this is here the menu is created -->
</div>
</div>

The "show_the_menu()" function displays the menu if it exists,
otherwise creates something like: <div style="position = absolute;
display: none; z-index: 100">...</div>

This works fine in FF, but IE seems to totally ignore my z-index
declarations. I've tried with numerous different indices in both the
menu and surrounding elements.

Working example located at: http://82.182.82.250/~gs/test/

Jan 8 '07 #2
On Jan 8, 4:51 pm, "Mr me" <drillbatt...@gmail.comwrote:
On Jan 8, 4:42 pm, drillbatt...@gmail.com wrote:
[...]
This works fine in FF, but IE seems to totally ignore my z-index
declarations. I've tried with numerous different indices in both the
menu and surrounding elements.

Working example located at:http://82.182.82.250/~gs/test/
I thought I'd also mention that what gets to me is that in IE the
images inside the anchors show "through" the menu div.. in case you did
not notice :)

Jan 8 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Ken Kast | last post by:
Here's my situation. I have a statically positioned table that has an image in a cell. I also have some layers, defined by absolute-positioned DIVs for some animation. Everything works until I...
1
by: Wilhelm Kutting | last post by:
Hi i like to make a complex layout with css. All the content is inside a container div. I like to get the following sequence without the css-layout: logo title mainnav content i can only...
3
by: Markus Ernst | last post by:
Hello Reading the follwing document: http://www.w3.org/TR/WD-positioning-970131#In-flow it seems very clear that position:relative should be relative to the parent element. So in the following...
24
by: Wim Roffal | last post by:
I am trying to create a menu system. The mainmenu is a table <table><tr><td>menu1</td><td>menu2</td></tr></table> No I try insert the submenu so that it becomes relative to the main menu...
6
by: alex | last post by:
I'm playing around with css popups a la http://www.meyerweb.com/eric/css/edge/popups/demo.html for here: http://www.redbrick.dcu.ie/~alex/golf/courseinfo.html (css)...
6
by: Gérard Talbot | last post by:
Hello fellow stylers, When trying this page http://www.gtalbot.org/BrowserBugsSection/PercentualRelativePositioning.html I get different rendered layouts with IE 6, IE 7 beta 2, Firefox...
4
by: Petra Meier | last post by:
Hi, I use the common code to determine the position of an element getTop = function(o){ var nTop = null; if(o){ do{ nTop += o.offsetTop;
10
by: Mark | last post by:
According to my book on CSS, if you apply 'position: relative' to a block-level element, it will stay exactly where it is. However, you can then use top, left etc. to offset the element relative to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.