| | |
iframe background color - pls help
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2006
Posts: 21
Reputation:
Solved Threads: 0
Try this;
<IFRAME scrolling=no SRC="http://adplex.biz/ad/view_ad.php" NAME="Ad" frameborder="0" style="background-color: #000000"></IFRAME>
If the black background doesn't work in iframe then I suggest you put bgcolor="#000000" in view_ad.php. It'll work.
<IFRAME scrolling=no SRC="http://adplex.biz/ad/view_ad.php" NAME="Ad" frameborder="0" style="background-color: #000000"></IFRAME>
If the black background doesn't work in iframe then I suggest you put bgcolor="#000000" in view_ad.php. It'll work.
█ WeLoveCSS.com • XHTML/CSS Forum for beginners to advanced users
Can't find any good CSS Forums? WLC is the right place for you!
Can't find any good CSS Forums? WLC is the right place for you!
In the 'view_ad.php' file you are calling into the IFRAME, you need to define the background color. You can do this a myriad, perhaps the easiest would be to ensure that the body tag has a BG Color tied to it. Ideally you would use CSS to make this happen. Regardless simplest way would be to add the following to 'view_ad.php':
However, CSS SHOULD be used, but this will let you know if it's going to be the fix. Let us know what happens.
HTML and CSS Syntax (Toggle Plain Text)
<body bgcolor="#000000">
•
•
Join Date: Apr 2006
Posts: 21
Reputation:
Solved Threads: 0
Yes you have control to make the change view_ad.php? - Open view_ad.php and put bgcolor we explained to you already. Or find the file where you can put bgcolor, look at the path filenames inside the view_ad.php
If you still have problem, I suggest you post at phpadsnew forum.
transparency is background-color: transparent" or you need javascript transparent but no needed.
If you still have problem, I suggest you post at phpadsnew forum.
transparency is background-color: transparent" or you need javascript transparent but no needed.
█ WeLoveCSS.com • XHTML/CSS Forum for beginners to advanced users
Can't find any good CSS Forums? WLC is the right place for you!
Can't find any good CSS Forums? WLC is the right place for you!
•
•
Join Date: Jul 2007
Posts: 1
Reputation:
Solved Threads: 0
Hi.
Like others before me said, u have to add the followin code into your PHP file, is the only way yo make it work.Styles in Iframe don't work in Internet Explorer, even in version 7. Transparency isn't an optioon.
So, in php file, put this:
?>
<body bgcolor="#000000">
<?php
You have to close the <?PHP before you put the HTML command <body> and reopen it for the rest of the script.You may also put it at the enc, after ?> (I tryed just the first option and it works like a charm in any Internet explorer).
See ya.
Like others before me said, u have to add the followin code into your PHP file, is the only way yo make it work.Styles in Iframe don't work in Internet Explorer, even in version 7. Transparency isn't an optioon.
So, in php file, put this:
?>
<body bgcolor="#000000">
<?php
You have to close the <?PHP before you put the HTML command <body> and reopen it for the rest of the script.You may also put it at the enc, after ?> (I tryed just the first option and it works like a charm in any Internet explorer).
See ya.
![]() |
Similar Threads
- need help changing background color of an iframe (JavaScript / DHTML / AJAX)
- help with setting background color!!! (Java)
Other Threads in the HTML and CSS Forum
- Previous Thread: Aligning tables inside tables by height
- Next Thread: 2 framed pages - issue !!
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7





