Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

iframe always in front of div

1,380 views
Skip to first unread message

Gav

unread,
Oct 14, 2004, 2:34:02 PM10/14/04
to
Hi all,

I have a webpage that has both a div and iframe in it.

They overlap each over and the iframe has a PDF as it's src, I want to have
the DIV in front of the iframe but it just doesn't seem to wanna play no
matter what I do.

Is there a way to acheive what I'm after?

Thanks
Gav


Kody Brown

unread,
Oct 27, 2004, 8:24:56 PM10/27/04
to
There is a great feature that I have figured out for use with my components,
that most people don't know about; those that do, apparently, aren't willing
to share (unless you pay them)!! I use this code all over the place with
combo boxes, flash media, etc.


<!-- PDF file, Flash object, select/combo box that you want to be underneath
another object -->
<iframe style="position:absolute; left:200px; top:200px; width:150px;
height:150px; background-color:blue; z-index:1;" src="/file.pdf"></iframe>
<!-- element you want to show on top -->
<div style="position:absolute; left:100px; top:100px; width:150px;
height:150px; background-color:blue; z-index:10;"></div>
<!-- put this directly behind (z-index) the element you want to show up;
notice the z-index -->
<iframe style="position:absolute; left:100px; top:100px; width:150px;
height:150px; z-index:9;" src="about:blank"></iframe>


The iframe provides a barrier to block any object below it. That'll be $50,
please! (hehe just kidding..)

--
-Kody
kody at weekendtech dot net
"Custom ASP.Net Web Controls"

"Gav" <sp...@spam.com> wrote in message
news:%23gtXtxh...@TK2MSFTNGP14.phx.gbl...

eliza...@gmail.com

unread,
Jan 24, 2019, 9:43:16 AM1/24/19
to
not working in my case :(
0 new messages