You might also try opacity. Give the iframe 100% opacity (fully transparent), and then layer it underneath the rest of your content, e.g. position: absolute; z-index: -1. In theory, the opacity would apply to the iframe but not to the contents of the iframe, since it is a separate document. You might also try a print style sheet for the main document that has the visibility, display, opacity (whichever works) set to visible, and not visible in the normal style sheet.
In Explorer opacity is set with a proprietary filter property.
http://msdn.microsoft.com/workshop/a...ters/alpha.asp
iframe {
filter:progid:DXImageTransform.Microsoft.Alpha(opa city=100);
}
In Mozilla, prior to Firefox 1.0 (Netscape 7, Mozilla 1.7, etc), it's the -moz-opacity property, which accepts a decimal value between 0 (fully transparent) and 1 (fully opaque).
For instance:
iframe {
-moz-opacity: 0;
}
Or
iframe {
-moz-opacity: 0.1; /* mostly transparent */
}
Firefox 1.0 and later take the CSS3 opacity property (same value). Safari is said to support -khtml-opacity, which is the same as the CSS 3 opacity property, don't know though never tried it.
http://www.w3.org/TR/2003/CR-css3-co.../#transparency
HTH!
Regards,
Rich
--
[
http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design