Results 1 to 3 of 3

Thread: IFRAMES Transparency

  1. #1
    Join Date
    Dec 2002

    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?
    Nothing clever to say, sorry.

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

    If not try it

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

    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
    // Stefan Huszics

  3. #3
    Join Date
    Nov 2002

    IE only ...

    has an attribute called "allowTransparency". See


    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