Ok, the situation is as follows:
I defined a <DIV> like:
<div id="myid" style="position : absolute; height: 10; width: 10;"><img src="images/object.gif" height=10 width=10></div>
This pane is used to move an object around on the web page by a javascript.
As long as I define no further <div> pane everything works fine.
Then (due to other requirements) I introduced some other <div> panes similar to
<div style="position : absolute; top: 0; left: 0; width: 400px; height: 1000px;
background-image: url(image/mybackround.gif )"><img src="images/mypic.gif"></div>
From this moment on I cannot see the object defined in the first <div> statement any more.
Hmm, I guess that this is because the later <div> panes "overwrite" the first one.
Can two <div> panes on the same area co-exist?
Or can I drop one <div> pane on top of the other with transparency property?
Marcus 6 37156
Marcus Otmarsen wrote: Ok, the situation is as follows:
I defined a <DIV> like:
<div id="myid" style="position : absolute; height: 10; width: 10;"><img src="images/object.gif" height=10 width=10></div>
10 what? You need a unit with css, e.g., 10px.
Can two <div> panes on the same area co-exist?
Url?
--
Brian (remove ".invalid" to email me) http://www.tsmchughs.com/
> I defined a <DIV> like: <div id="myid" style="position : absolute; height: 10; width: 10;"><img src="images/object.gif" height=10 width=10></div>
Then
<div style="position : absolute; top: 0; left: 0; width: 400px; height: 1000px; background-image: url(image/mybackround.gif )"><img src="images/mypic.gif"></div>
try giving the secondary div an id, too. otherewise it becomes
impossible to tell them apart. absolutley positioned divs can overlap,
define background-color:tranparen cy to acheived the desired affect.
> I defined a <DIV> like: <div id="myid" style="position : absolute; height: 10; width: 10;"><img src="images/object.gif" height=10 width=10></div>
Then
<div style="position : absolute; top: 0; left: 0; width: 400px; height: 1000px; background-image: url(image/mybackround.gif )"><img src="images/mypic.gif"></div>
try giving the secondary div an id, too. otherewise it becomes
impossible to tell them apart. absolutley positioned divs can overlap,
define background-color:tranparen cy to acheived the desired affect.
Marcus Otmarsen wrote: Can two <div> panes on the same area co-exist?
Or can I drop one <div> pane on top of the other with transparency property?
Easily. Read up on absolute positioning and z-index.
Transparency isn't widely supported (ie IE). Take a look at my site
(sig) in Firefox and find a page that needs vertical scrolling - then
watch the header bar as you scroll.
--
Mark. http://tranchant.plus.com/
On Thu, 05 Aug 2004 07:53:20 +0100, Mark Tranchant
<ma**@tranchant .plus.com> wrote: Marcus Otmarsen wrote:
Can two <div> panes on the same area co-exist?
Or can I drop one <div> pane on top of the other with transparency property?
Easily. Read up on absolute positioning and z-index.
Transparency isn't widely supported (ie IE). Take a look at my site (sig) in Firefox and find a page that needs vertical scrolling - then watch the header bar as you scroll.
Is the JavaScript alert() message "Handler could not be removed" on
every newly-loaded page intentional?
-Claire
On Thu, 5 Aug 2004 00:56:33 +0200, ot***@gmx.net (Marcus Otmarsen)
wrote: Ok, the situation is as follows:
I defined a <DIV> like:
<div id="myid" style="position : absolute; height: 10; width: 10;"><img src="images/object.gif" height=10 width=10></div>
This pane is used to move an object around on the web page by a javascript.
As long as I define no further <div> pane everything works fine.
Then (due to other requirements) I introduced some other <div> panes similar to
<div style="position : absolute; top: 0; left: 0; width: 400px; height: 1000px; background-image: url(image/mybackround.gif )"><img src="images/mypic.gif"></div>
From this moment on I cannot see the object defined in the first <div> statement any more.
Hmm, I guess that this is because the later <div> panes "overwrite" the first one.
Can two <div> panes on the same area co-exist?
Or can I drop one <div> pane on top of the other with transparency property?
Marcus
Check out the z-index property under CSS.
the higher the z-index the more priority it has over other things.
for your large div assign a value of 1 and for the div to appear ontop
of that assign a value of 2
HTH
Al This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Catherine Lynn Smith |
last post by:
I am creating a webpage with dhtml <DIV> layers and I want a link on
one layer to modify the content on another but I seem to keep running
into errors.
Basically I create a layer in the middle of the screen that initially
comes up with a gif image of a house:
<!-- start "house" layer definition for center of screen -->
<DIV id="house" style="position:absolute; left:140px; top:137px;
width:510px; height:325px; z-index:2"><img...
|
by: Marcus Otmarsen |
last post by:
Ok, the situation is as follows:
I defined a <DIV> like:
<div id="myid" style="position: absolute; height: 10; width: 10;"><img src="images/object.gif" height=10 width=10></div>
This pane is used to move an object around on the web page by a javascript.
As long as I define no further <div> pane everything works fine.
|
by: slim |
last post by:
hi again all,
i am still working on the website as mentioned in earlier threads and
have hit another snag...
http://awash.demon.co.uk/index.php
http://awash.demon.co.uk/vd.css
the php is pulling a name and placing it under the thumbnail (the text is
|
by: Charlie T |
last post by:
Hello,
is there any way to get this to work?
myID.innerHTML = "Hello"
<DIV id="myID"></DIV>
<DIV id="myID"></DIV>
|
by: Tim Sheets |
last post by:
Hi all,
I am having a problem that seems so simple, I am almost embarrassed to
ask about it.
I am working on a page that has the layout largely css driven. The top
of the page has two <img> tags, one a logo, the other a graphic just for
looks. If I use the following code:
<div id="header">
| |
by: Kevin Blount |
last post by:
I'm playing with dragable <DIV>s, being inspired by google.com/ig,
where you can move items on the page around and have items you move
over change position if necessary.
I have 3 div's setup, one for each dragable item (boxes about
100x150px), inside another div that sets up a border.
my script is instigated by an onMouseOver event and works great for
moving items, setting the opacity, etc. The only trouble is (and I
guess I should...
|
by: Bruce W...1 |
last post by:
IE 6 supports the DOM for the most part. Am I missing something or is
this absent from Visual Studio 2003? Does Web Matrix have it?
You see, I'm trying to get Visual Studio and Dreamweaver MX to play
together nicely. And with html tables they do. So I thought I'd try
some layers instead of tables. I created some layers in Dreamweaver
then in VS put in some ASP.NET hyperlink, but then Dreamweaver wouln't
let me edit the layer...
|
by: Sebastian Gohres |
last post by:
Hi!
I want three DIV-Container side by side in another DIV-Container:
____________________________________
|text text text text text text text |
| __________ __________ __________ |
||__________||__________||__________||
|____________________________________|
I have some play around like
|
by: gaya3 |
last post by:
Hi All,
In my dojo grid application, want to create <div> tag inside another <div> tag by using document.createElement('DIV');
I done as follows
var outerNode = document.createElement('DIv');
outerNode .setAttribute('dojoType','dijit.Menu')
document.body.appendChild(outerNode );
var innerNode1 = document.createElement('DIv');
innerNode1 .setAttribute('dojoType','dijit.MenuItem);
|
by: prino |
last post by:
Hi all,
I've written code (in REXX) that takes files in legacy languages (PL/I, COBOL, z/OS assembler, etc) and converts them into HTML in a format similar to what's displayed in the z/OS ISPF editor. A fellow member of the PCG has helped me by creating a bit of Javascript to emulate the scrolling and using Google I've now gotten it into a state where it almost passes the W3C Markup Validation Service. However, the one error, Error Line 166,...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |