How to make an IFRAME with a CLEAR background.

Posted on 2005-04-21
Last Modified: 2008-01-09
I would like to know how to make an iframe that has a clear background.  This way I can have a picture in my background on my main page, but have a frame on top of it.
Question by:Keruri
    LVL 18

    Accepted Solution

    two things:

    on the page in the iframe you need this inyour CSS:
    body {background-color: transparent}

    on the iframe tag these attributes:
    allowtransparency="true" background-color="transparent"

    see this link for more info:

    Author Comment

    Ah, ok, thanks!
    LVL 18

    Expert Comment

    glad i could help!  thanks for the A.  :-)

    Featured Post

    Course: CSS Specialist

    We don’t have to sell you on the idea of becoming a developer. If you’re you here, you already know it’s one of the most lucrative (and fastest growing) career tracks out there. It’s CSS that allows you to set yourself apart from other web and mobile developers.

    Join & Write a Comment

    Introduction This warning has to be one of the most commonly issued warnings in the history of PHP.  The article explains why this warning arises and what to do to mitigate the problem. How this Happens HTTP headers include many different kinds…
    Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
    In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
    In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now