title: Div transparent background when having an iframe in it?
body: <p>I have a page that holds an iframe:</p>
  
  <pre><code>&lt;div style="position:absolute; width:80%; top:100px; left:10%; z-index:5;"&gt;
      &lt;iframe src="www.google.com" /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Note that the source of the iframe can be from another domain, so I can't change the html in it.</p>
  
  <p>In addition to this ifame I have a menu and some decoration image at the bottom:</p>
  
  <pre><code>&lt;div id="menu" style="position:absolute; width:100%; top:0px; left:0px; z-index:100;"&gt;
      ...
  &lt;/div&gt;
  
  &lt;div id="footer" style="position:absolute; width:100%; bottom:0px; left:0px; z-index:0;"&gt;
      ...
  &lt;/div&gt;
  </code></pre>
  
  <p>As you can see, I gave z-index to each div, so it should be displayed in that order: the menu on the top, followed by the div with the iframe and at the end the footer image.</p>
  
  <p>What I want is that the iframe (and the div holds it) to have no background (transparent bg color if you like), so the background and the footer image behind it will be visible. Note that I want to change only background color; the text must not change or get opacity.</p>
  
  <p>I managed to get to the bg image and change it (with jquery):</p>
  
  <pre><code>if ($.browser.msie == false) {
      $(document.getElementById("content").contentDocument.body).
                          css('background', "url('transparent.png')");
  }
  else {
      $(document.getElementById("content").Document.body).
                          css('background', "url('transparent.png')");
  }
  </code></pre>
  
  <p>It works greate on the iframe, but the div that holds it somehow gets a white background.</p>
  
  <p>It won't change if I set the background of the div to this 'transparent.png' image; the div will still save its white background!</p>
  
  <p>If I replace the div with a table, the iframe goes behind the footer image (although it has z-index bigger).</p>
  
  <p>All I want is just to see the footer image behind that iframe...</p>
  
  <p>Please help, I'm quite hopeless... : (</p>