943,946 Members | Top Members by Rank

Ad:
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Nov 3rd, 2009
0
Re: iframe background color
Exactly what I said, very concisely, in post #2 - the first reply to this thread.

Airshow
Sponsor
Reputation Points: 318
Solved Threads: 358
WiFi Lounge Lizard
Airshow is offline Offline
2,527 posts
since Apr 2009
Mar 5th, 2010
0
Re: iframe background color
Add this stupid nonstandard IE-only attribute to the iframe tag, and IE will behave more-or-less like the W3 standard suggests:
HTML and CSS Syntax (Toggle Plain Text)
  1. <iframe src="..." allowtransparency="true"></iframe>
Reputation Points: 10
Solved Threads: 1
Newbie Poster
ZootAllures is offline Offline
15 posts
since Mar 2010
Mar 8th, 2010
0
Re: iframe background color
You need to style the document(s) that appear in the iframe with a black background, rather than the iframe itself.
Last edited by Ezzaral; Mar 8th, 2010 at 2:45 pm. Reason: Snipped "fake sig" link. Please restrict such links to your site-wide user signature, which can be edited from the user control panel.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cutecub11 is offline Offline
1 posts
since Mar 2010
Mar 9th, 2010
0
Re: iframe background color
Yes, you can style the iframe contents as per usual, but it can be difficult to exactly fill the iframe exactly. Any gap between the content and the outside of the iframe get colored white and the iframe ignores any background styles (maybe it ignores styles altogether; I don't know).

What I do know is that adding the allowtransparency="true" attribute to the iframe allows the underlying background to show through, as I mentioned above.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
ZootAllures is offline Offline
15 posts
since Mar 2010
Mar 9th, 2010
0
Re: iframe background color
I thought this old thread was dead but it's good to learn about allowtransparency . Could be useful one day.

Airshow
Sponsor
Reputation Points: 318
Solved Threads: 358
WiFi Lounge Lizard
Airshow is offline Offline
2,527 posts
since Apr 2009
Mar 9th, 2010
0
Re: iframe background color
I got sick to death of threads all over the internet that asked the question but never had the answer, so when I found the answer I went around and rejuvenated a bunch of dead threads, including this one.

It's a problem with forums everywhere.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
ZootAllures is offline Offline
15 posts
since Mar 2010
Mar 9th, 2010
0
Re: iframe background color
Thanks Zoot, that's very public spirited of you.

Must spin up my "Hot Rats" some time

Airshow
Sponsor
Reputation Points: 318
Solved Threads: 358
WiFi Lounge Lizard
Airshow is offline Offline
2,527 posts
since Apr 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Frameset Form Problem in IE
Next Thread in HTML and CSS Forum Timeline: Mutiple style sheets





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC