So i have this iFrame with the class .transparentbg:
.transparantbg{ background-color: transparent; }
This works fine in Chrome, but not in IE...
Help please?
Greetings
The <iframe> tag is an inline frame. It is used to embed another HTML page within the current HTML page. A transparent iframe can be made by setting its background to transparent. And, the allowtransparency attribute of “iframe” is to be set as “true”.
Applying a custom iframe background color Instead of transparency or black bars, you can choose the exact color that fills your iframe. Keep in mind that you'll need to visit your video's player settings to adjust the color of the text and play bar within the player.
<iframe src="" allowtransparency="true"> The allowtransparency attribute of the IFRAME element specifies whether to allow a transparent background in the iframe. <iframe src="example.html" allowtransparency="true"></iframe>
Attachments: Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.
Add allowTransparency="true" to your iframe
<IFRAME ID="Frame1" SRC="whatever.htm" allowTransparency="true">
For whatever.htm add background:transparent
to its body
tag.
<body style="background:transparent">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With