How do I create a transparent inline frame?

Frequently Asked Questions about WYSIWYG Web Builder
Locked
User avatar
Pablo
 
Posts: 21569
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

How do I create a transparent inline frame?

Post by Pablo »

Here's how you can create an inline frame with a transparent background.
This will allow you to create scrollable text with the background of your main page showing through.

Part A:
1. Create a page with the text your want to scroll.
2. Open Page HTML and enter this code in the Between Head Tag field:

Code: Select all

<style type="text/css"> 
body 
{ 
   background-color:transparent
} 
</style>
Part B:
3. Create a page with an IFRAME (Inline Frame)
4. Set the URL to the page above.
5. Open the Object HTML for this inline frame.
6. Enter this code in the Inside Tag field:

Code: Select all

allowtransparency
7. Preview or publish this page to see the effect.

Edited: 24-12-2006
Edited: 04-02-2008
Edited: 03-03-2009
Locked