473,804 Members | 2,758 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Z-index I.E versus Firefox

Hi. New here.

I have a xhtml with two footers at the bottom. The style sheet has.

Footer1 is a div and a container for two more divs: #webmaster and
#links. #webmaster floats left and #links floats right. Both #webmaser
and #links has words written in the Div. The Z-index in footer1 is
200. Footer1 position is relative.

Footer2 is a div and a container for two more divs #plant1 and
#plant2. #plant1 is absolute postion bottom left and #plant2 is
absolute position bottom right. Footer2 has a Z-index of 100.

The plant in footer2 overlaps into footer1 which is what I want. Since
footer1 has a higher z-index I thought the words in #webmaster and
#links would be on top of the plant. Actually in Firefox this is the
case -- Firefox displays it the way I want.

However, I.E. it is a different story. Even though footer1 has a higher
z-index the words are below the plant. How do I get the the words to be
on top of the plant in I.E.? Any clue? I have searched the net and
found none.

thanks in advance for any help.

Jul 21 '05 #1
1 13375
me
"steve" <re********@hot mail.com> wrote in message
news:11******** *************@f 14g2000cwb.goog legroups.com...
Hi. New here.

I have a xhtml with two footers at the bottom. The style sheet has.

Footer1 is a div and a container for two more divs: #webmaster and
#links. #webmaster floats left and #links floats right. Both #webmaser
and #links has words written in the Div. The Z-index in footer1 is
200. Footer1 position is relative.

Footer2 is a div and a container for two more divs #plant1 and
#plant2. #plant1 is absolute postion bottom left and #plant2 is
absolute position bottom right. Footer2 has a Z-index of 100.

The plant in footer2 overlaps into footer1 which is what I want. Since
footer1 has a higher z-index I thought the words in #webmaster and
#links would be on top of the plant. Actually in Firefox this is the
case -- Firefox displays it the way I want.

However, I.E. it is a different story. Even though footer1 has a higher
z-index the words are below the plant. How do I get the the words to be
on top of the plant in I.E.? Any clue? I have searched the net and
found none.

thanks in advance for any help.


If you're sure the words in footer1 are below plant then something is wrong.
In the example below footer1 has a z index of 200 it's two divs are above
the divs in footer2 which has a z index of 100. I use IE6
See below:
Good Luck,
me

<html>
<head>
<title>Untitl ed Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFF F">
<div id="footer1" style="position :absolute; width:200px; height:115px;
z-index:200">
<div id="webmaster" style="position :absolute; width:200px; height:115px;
z-index:1; left: 91px; top: 5px; background-color: #CCFFCC;
layer-background-color: #CCFFCC; border: 1px none #000000">webmas ter</div>
<div id="links" style="position :absolute; width:200px; height:115px;
z-index:2; top: 29px; left: 139px; background-color: #FFFFCC;
layer-background-color: #FFFFCC; border: 1px none #000000">links
</div>
</div>

<div id="footer2" style="position :absolute; width:200px; height:115px;
z-index:100; left: 25px; top: 62px">
<div id="plant1" style="position :absolute; width:200px; height:115px;
z-index:1; left: 27px; top: 4px; background-color: #CCCCFF;
layer-background-color: #CCCCFF; border: 1px none #000000">plant1 </div>
<div id="plant2" style="position :absolute; width:200px; height:115px;
z-index:2; background-color: #FFCCCC; layer-background-color: #FFCCCC;
border: 1px none #000000; top: 47px; left: -15px">
<p>plant2</p>
</div>
</div>
</body>
</html>
Jul 21 '05 #2

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

Similar topics

1
1429
by: JohnDpatriot | last post by:
After installing XP SP2 on my machine, I continually get the Script Error permission denied when I attempt to adjust the Zindex of an object on the page . see below document.getElementById(document.getElementById('CurrentLayer').value).style.zIndex=1; Before XP SP2 this app worked, and still does on all non-sp2 machines. Any help would be great
22
10364
by: DJ WIce | last post by:
Hi, I'm looking for a script to get the hi-est z-index on a page. I want my javascript menu to be always on top of the page (moves along on top when you scroll down). Does anyone know how to scann all items/elements on the page for a z-index? Thanks, Wouter
1
1586
by: KiwiBrian | last post by:
On my page at http://www.hibiscuslink.co.nz/rbsl/ when viewed in IE6 there is a desired dark brown border surrounding the horizontal menu. When viewed in FF the border seems to only be displayed above the menu instead of surrounding it. I would love to know the reson why, and how to make the border display the same in both browsers. All CSS is embedded and/or inline. Brian Tozer
2
4574
by: reynoldlariza | last post by:
Can somebody please help me, i tried playing around with IE6 and Firefox 2.0 browser for setting zIndexes and hide & show of divs. It seems to work to both. I tried repeatedly clicking on different divs on IE and no problem, but on firefox if I do the same, some divs just got hidden without notice. try clicking variably on different divs and it will happen... How do I make this stable? ----------------------------- <HTML> <HEAD>...
28
6703
by: Wladimir Borsov | last post by:
The HTML source of one of my web pages starts simplified with a code like: ---- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> ..... <BODY BACKGROUND="images/myback.gif"> <div id="content" style="position: absolute; top: 0; left: 255px; width: 700px; z-index:-1; background-color: transparency;"> Blah blah blah </DIV> </BODY>
1
4228
by: littlealex | last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS! In IE6 the text for the following page doesn't display properly - rather than being aligned to the top, along with the slideshow and link buttons, you have to scroll down to see the text - how can I make IE6 display correctly? http://geekarama.co.uk/new_home.html here is the code for new_home.html and following that the CSS...
1
22454
Claus Mygind
by: Claus Mygind | last post by:
How come I can set this style element document.getElementById("popTime").style.left = "0px"; but not this document.getElementById("freqJobDiv").style.zIndex = "20"; I have two nested division on the screen. I want to use a mouseover to bring the back division to the front. It seems I can get all the style properties to work except for zindex
1
6151
by: bob2044 | last post by:
offsetHeight is not working in following code <script type="text/javascript"> function Coverdiv() { var standard=(document.compatMode=="CSS1Compat") ? document.documentElement:document.body; var dv = document.createElement("div"); dv.setAttribute("id","cover"); document.body.appendChild(dv); var cover=document.getElementById("cover");
0
10568
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10074
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9138
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7613
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5516
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4292
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3813
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2988
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.