Float <div> over <frameset ...>

S

sid

Is it possible to float a <div> on top of a <frameset ...> ?

I need it to overlap parts of the frames.

Thanks

Sid.
 
E

Erwin Moller

sid said:
Is it possible to float a <div> on top of a <frameset ...> ?

I need it to overlap parts of the frames.

Thanks

Sid.

Hi Sid,

I don't think you can do it easily.
A div can only float over the rectangle that a window is.
If you need to show it over multiple windows (frames) you'll have a
difficult task ahead to figure out how much of the floating div is
visible in window1, and make the rest appear in window2, or even also
window3.

This can be done, but you'll need a lot of communication between the
windows to pass this info around, AND you need to figure out how much of
the div is visible in window1, then create the same div in window2, and
figure out WHERE to float that one.
Sounds difficult, but can be done in principle I think.

Regards,
Erwin Moller
 
P

Peter Michaux

Hi Sid,

I don't think you can do it easily.
A div can only float over the rectangle that a window is.
If you need to show it over multiple windows (frames) you'll have a
difficult task ahead to figure out how much of the floating div is
visible in window1, and make the rest appear in window2, or even also
window3.

This can be done, but you'll need a lot of communication between the
windows to pass this info around, AND you need to figure out how much of
the div is visible in window1, then create the same div in window2, and
figure out WHERE to float that one.
Sounds difficult, but can be done in principle I think.

If the frames have borders then my guess is the div could not appear
to be continuous from one frame to the next.

Peter
 
S

sid

If the frames have borders then my guess is the div could not appear
to be continuous from one frame to the next.

Peter- Hide quoted text -

- Show quoted text -

Could the <div> belong to the page that holds the <frameset ...>
Like a parent frame of something ?

Sid
 
R

rf

sid said:
Could the <div> belong to the page that holds the <frameset ...>
Like a parent frame of something ?

No. Each frame in the frameset is, effectively, a seperate browser window.
 
S

sid

No. Each frame in the frameset is, effectively, a seperate browser window.

What if the frame I want to float a <div> over is in an Iframe instead
of a <frameset ...> ?

Can I do it then ?

Thanks

Sid.
 
P

Peter Michaux

What if the frame I want to float a <div> over is in an Iframe instead
of a <frameset ...> ?

Can I do it then ?

Yes.

The following looks like crap in Mac/Firefox because scroll bars bleed
through overlayed element. Also in at least IE6 select elements bleed
through but there is an iframe screening trick for that.

Peter


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>untitled</title>

<style type="text/css">
.popup {
position:absolute;
z-index:2;
top:50px;
left:50px;
background:cornflowerblue;
width:200px;
height:200px;
}
</style>

</head>
<body>

<div class="popup">my nice div</div>

<iframe src="http://www.jibbering.com/faq/"></iframe>

</body>
</html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,159
Messages
2,570,879
Members
47,414
Latest member
GayleWedel

Latest Threads

Top