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 37132
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: 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: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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: 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...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |