473,326 Members | 2,081 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,326 software developers and data experts.

Z index not working in ie6

Hi everyone,
I am trying to create a simple overlay , and my code is as follows:

<div id="popUp" style="display:block; background-color:#ffffff; width:400px;height:180px;margin-left:160px;margin-top:25px;
border:2px solid #000000;border-style:solid;position:fixed; z-index: 9999;">

<span style="margin-left: 383px;padding-top:15px;"><a href="javascript:void(0);" onclick="document.getElementById('popUp').style.di splay = 'none';"><img src="images/cross.gif" alt="img not found" /></a></span>
<img src="images/dime_white_logo.jpg" alt="Img not found" />
<p style="font-family:Verdana;font-style:normal;font-size:12px;font-weight:bold;color:#5C0302;margin-left:13px;margin-top:25px;" >
To get a better view <a href="/register.php" target="_blank" style="font-family:Verdana;font-style:normal;font-size:12px;font-weight:bold;color:#FBB917;">Join Now</a> Free or <a href="/login.php" target="_blank" style="font-family:Verdana;font-style:normal;font-size:12px;font-weight:bold;color:#FBB917;">Login</a> if you are already a member.
</p>

</div>

This works fine in Mozilla and chrome but in IE(version -6) its not working . Any idea ?

You can check its output on : http://dimeofthemonth.com/hunter

Thanks
Apr 4 '11 #1
2 2024
Aimee Bailey
197 Expert 100+
IE6 and IE7 have a problem with the z-index, as the z-plane is only really "used" when you first call z-index, a fix for this is to set a z-index for the parent element first, which should initialize the stack, then set the z-index for your div.

This is a bug in IE, not in your code.
Apr 4 '11 #2
Thank you Aimee for your quick response.
Apr 5 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Amy Kimber | last post by:
Hello, I have a file upload page, and I've had it working fine, it was beautiful :-) Anyway, the powers that be moved hosts... and it doesn't work now. The file name is correct, the directory...
8
by: Asad | last post by:
Hi, I am basically trying to accomplish drop down menus for navigation on a site. And I'm pretty much done except I am having one problem. The z-index is not working with relative positioning! ...
8
by: jojobar | last post by:
Okay, I am trying to do is to test the webresource in 2.0 1. I created a new project with assembly name (and default assembly name) "Office". 2. I added the following to the AssemblyInfo.cs...
2
by: Thomas F.O'Connell | last post by:
I'm interested to know a little bit more about the postgres implementation of indexes. I'm specifically wondering what it means in the output of EXPLAIN when a filter is applied. I'm trying to...
5
by: Uncle Sammy | last post by:
Hey all, I am trying to use a Listbox control with two data bindings. I cannot get the listbox to change the textboxes. Here's the code: using System; using System.Collections.Generic;...
5
by: greenflame | last post by:
hello all, I have installed apache and php following the instructions on this link which was very helpful: http://www.tanguay.at/installPhp5.php5 problem: OS: Windows XP
3
by: scabman | last post by:
Working on upgrading a site and after moving everything onto a test server (localhost) things started to get real buggy. Went through and checked all my links and everything comes up fine, but it...
3
by: ITAutobot25 | last post by:
Now this is really the last problem (for real now) with this assignment. My sorter is not working. I managed to sort by product name in my previous assignment; however, I can't get it to work on this...
2
by: lynx129 | last post by:
Hi there , I have php script that works fine under my server but I dont know how to put the html code inside my site. feedback.html <html dir="rtl"> <head> <title> ????? ??? </title>...
6
by: josequinonesii | last post by:
I've searched, I've read, I've tested and re-read numerous post but to no avail yet... Quite simply, the settings I've applied to my httpd.conf, httpd-vhost.conf and my hosts files simply does not...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.