dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: IFRAMES Transparency

  1. #1
    Join Date
    Dec 2002
    Location
    seattle
    Posts
    2

    Talking IFRAMES Transparency

    Hi all - I am using IFRAMES and loading content into them. However, I need the background to be transparent so the main image on the page is underneath the text in the HTML documents within the IFRAME. I have tried background-color="transparent" and it doesn't work. Anyone else come across this yet?

  2. #2
    Join Date
    Nov 2002
    Posts
    984
    Have you tried making both <html> and <body> transparent?

    If not try it

    <style type="text/css">
    html, body {background:transparent;}
    </style>

    If it doesn't work in browsers you are probably SOL.

    <object type="text/html"...> would be another option that is more likely to pick up the background, but browsersupport for including images like this is really bad.

    This page also shows a method that should theoretically be possible for you to apply (uning the same images as background) however IE is quite broken in it's CSS support of background images
    http://www.meyerweb.com/eric/css/edg...iral/demo.html

  3. #3
    Join Date
    Nov 2002
    Posts
    4,473

    IE only ...

    has an attribute called "allowTransparency". See

    http://msdn.microsoft.com/workshop/a...ansparency.asp

    for more information.

    It is a Microsoft proprietary attribute.

    BTW, I don't think you want quotes around transparent. I believe it is a constant, not a string. In IE, the background-color of an object by default is transparent.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles