473,320 Members | 1,872 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,320 software developers and data experts.

Z-Index

I have 2 "divs" in my page, as defined below.

Given teh z-index values, I would expect the text in the "flash" class
to overlay the video div.. But all I see is the video div.

Any idea what i am doing wrong.. happens in IE only..

-----

<div id="tempDiv" class="flash">
Text goes here
</div>
<div id="videoDiv" class="video">
OBJECT TAG TO DEFINE A REAL PLAYER PLUGIN
</div>

The stylesheet defs are as follows:

..video
{
position:absolute;
top: 0px;
left: 0px;
z-index: 0;
}
..flash
{
position:absolute;
top: 0px;
left: 0px;
width: 320px;
height: 240px;
background-color: green;
color: red;
z-index: 1000;
}

Jul 21 '05 #1
3 8737


b_*****@yahoo.ca wrote:
I have 2 "divs" in my page, as defined below.

Given teh z-index values, I would expect the text in the "flash" class
to overlay the video div.. But all I see is the video div.

Any idea what i am doing wrong.. happens in IE only..

-----

<div id="tempDiv" class="flash">
Text goes here
</div>
<div id="videoDiv" class="video">
OBJECT TAG TO DEFINE A REAL PLAYER PLUGIN
</div>


Most plugins render their content on top of normal stuff, only some
plugins like Flash have (on Windows only I think) a setting
<object ...>
<param name="wmode" value="transparent">
</object>
to have contents rendered on the same z level as normal content.
Note that Flash performs worse in that mode.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 21 '05 #2
b_*****@yahoo.ca wrote:
I have 2 "divs" in my page, as defined below.

Given teh z-index values, I would expect the text in the "flash" class
to overlay the video div.. But all I see is the video div.

Any idea what i am doing wrong.. happens in IE only..


In both Firefox and IE I get the green 'flash' div over the top of the
'video' div.

This is a CSS issue, try comp.infosystems.www.authoring.stylesheets

--
Rob

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<title>blah</title>
<meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1">
<style type="text/css">
..video
{
position:absolute;
top: 0px;
left: 0px;
z-index: 0;
}
..flash
{
position:absolute;
top: 0px;
left: 0px;
width: 320px;
height: 240px;
background-color: green;
color: red;
z-index: 1000;
}
</style>
</head><body>

<div id="tempDiv" class="flash">Text goes here</div>

<div id="videoDiv" class="video">
OBJECT TAG TO DEFINE A REAL PLAYER PLUGIN
</div>

</body>
</html>
Jul 21 '05 #3
b_na...@yahoo.ca wrote:
I have 2 "divs" in my page, as defined below.

Given teh z-index values, I would expect the text in the "flash" class to overlay the video div.. But all I see is the video div.

Any idea what i am doing wrong.. happens in IE only..

-----

<div id="tempDiv" class="flash">
Text goes here
</div>
<div id="videoDiv" class="video">
OBJECT TAG TO DEFINE A REAL PLAYER PLUGIN
</div>

The stylesheet defs are as follows:

.video
{
position:absolute;
top: 0px;
left: 0px;
z-index: 0;
}
.flash
{
position:absolute;
top: 0px;
left: 0px;
width: 320px;
height: 240px;
background-color: green;
color: red;
z-index: 1000;
}


http://joshuaink.com/blog/82/flash-content-and-z-index

Jul 21 '05 #4

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

Similar topics

1
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 ...
22
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...
5
by: Razzbar | last post by:
I'm using a div as a floating dialog box. I'd rather use a popup window, but due to all the popup blockers in use, I have to use another method, a div that has absolute positioning. The damn...
0
by: torchestra | last post by:
I have two activex object. I have to different classes; one with z-index:2000 and one with z-index:1. Both classes have absolute positioning and left and top set to 0. The two objects is located...
0
by: torchestra | last post by:
I have two activex object. I have to different classes; one with z-index:2000 and one with z-index:1. Both classes have absolute positioning and left and top set to 0. The two objects is located...
2
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...
1
by: Sabbaath | last post by:
But haven't really found anything that answers the issue. Basically, I have a js function that has these lines in it, among others: var navSectionBg = document.getElementById("mainNav_" +...
2
by: zz2uk1 | last post by:
Im trying to show a text box above a div in a simple webpage. Im viewing in IE 7 and Chrome and the text box is always below the div, although I have set the zIndex fairly high. I have included...
1
by: gandhi.vishal | last post by:
Hello, I have an issue. I'm not seeing the reportviewer data at all. The column names come up fine but there is no data in the report table. Here is what I'm doing I created a dataset with the...
1
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...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: 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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.