Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4022384
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:28:06+00:00 2026-05-20T10:28:06+00:00

I am looking for some alternate way to do: <iframe transparency=true … When I

  • 0

I am looking for some alternate way to do:

<iframe transparency=true   ...

When I do the W3C validation, I am getting the error:

Column 31: there is no attribute "allowtransparency"

If use this CSS,

.iframe-trans-fix{
   opacity: 0;
   filter:alpha(opacity=0);
}

for the above snippet I am getting a blank iframe.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T10:28:07+00:00Added an answer on May 20, 2026 at 10:28 am

    While it’s true that the W3C’s HTML spec does not define it, there is an allowTransparency attribute, and it is supported by all modern browsers (and Internet Explorer). As HTML5 has taught us, the cart is supposed to be before the horse.

    Suppose you have this HTML on your main page, index.html:

    <html>
        <body>
            <iframe src="source.html" 
                    allowTransparency="true" 
                    style="background-color:lightgreen;" 
                    width="400" height="200">
            </iframe>
        </body>
    </html>
    

    And your source.html looks like this:

    <html>
        <body>
            <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin gravida, magna
               id bibendum sollicitudin, tellus tortor consequat enim, et mollis mauris 
               augue et dui. </p>
        </body>
    </html>
    

    When you open the main page (index.html) in your browser, you will see the text from source.html in an iframe, but it will have a light green background.

    (Tested with Safari, Firefox, and Chrome on Mac OS X and Internet Explorer 8 and Chrome on Windows XP)

    Edit: The key is this: The source page cannot set its own background. If it does, it ignores the transparent background.

    Update: Just tested this (March 2019) using Safari 12, Chrome 73, and Firefox 65 on macOS High Sierra, and it still works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for some way to effectively hide inherited members. I have a library
I'm trying to visualize some graphs and am looking for alternate ways to style
Looking through some code I came across the following code trTuDocPackTypdBd.update(TrTuDocPackTypeDto.class.cast(packDto)); and I'd like
Looking for some direction here as I'm running into some migration problems. We have
Looking for some help with a Labview data collection program. If I could collect
Looking for some sample code (C#) for a simple thread pool implementation. I found
Looking at some code I'm maintaining in System Verilog I see some signals that
I was just looking through some information about Google's protocol buffers data interchange format.
I'm looking for some Best Practices for automating the deployment of Stored Procedures/Views/Functions/Table changes
I'm looking for some software that allows me to control a server based application,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.