PuffleBipkins
08-24-2002, 03:33 AM
Is there a way to have a DIV layer (I want you to be able to see the graphic behind the text) and also use it as an i-frame? I want all my content to appear there as well.
|
View Full Version : Iframe + DIV ??? PuffleBipkins 08-24-2002, 03:33 AM Is there a way to have a DIV layer (I want you to be able to see the graphic behind the text) and also use it as an i-frame? I want all my content to appear there as well. starlet 08-24-2002, 05:20 AM You can make a div layer scroll (by adding overflow: auto; to the code) but you wouldnt be able to target links into it like you would iframes. PuffleBipkins 08-24-2002, 08:30 PM So there's no way to make an i-frame's background COMPLETELY transparent, without making the text transparent too? (like a div layer, except being able to target) kittycat 08-24-2002, 08:52 PM Make the part of the image that the iframe overlaps as the background of your iframe, by cutting out that section. 58sniper 08-24-2002, 09:11 PM If the content that will be in the iframe is all showing (meaning you don't need scrollbars on the iframe), you could do something like this: <iframe name="myiframe" src="http://www.link.com/" frameborder="0" scrolling="no" style="border: 0px; width: 500px; height: 300px;"></iframe> This would put a 500x300 iframe, with no borders, containing the page. You could then target that iframe with new content. If the content was too big, you might not want to disable the scrollbars. Just a thought. PuffleBipkins 08-25-2002, 03:03 AM but would that make the i-frame background completely transparent? Grrrr... 58sniper 08-25-2002, 04:41 AM Well, that depends on the page that's in the iframe. The iframe is just a container for another page. How that page appears within that iframe depends on the page itself. PuffleBipkins 08-25-2002, 04:50 AM Yeah. Grrr I wish I could have like...a DIV layer/I-frame. Hehe... 58sniper 08-25-2002, 04:54 AM All you need to do, really is just format the background of the source document to be the same as the parent document, and you're all set. jamingben 02-14-2003, 12:28 PM try this add body { background: transparent; } to your style sheet. or i guess <body style="background:transparent"> or something like that, to your page html. then to your iframe tag add allowtransparency="true" that's what i use - look at No Advertising. Please read the rules. Please do not bring up old threads. - Moderator |