Computing.Net > Forums > Web Development > bg color of iFrame

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

bg color of iFrame

Reply to Message Icon

Name: nick1
Date: May 7, 2004 at 12:28:01 Pacific
OS: winxp pro
CPU/Ram: intel
Comment:

Greetings,

how do i change the background color of an iFrame?!

here is my iFrame code:

<iframe src="C:\Third_Party_Apps\MH PACS Web\message.txt" name="iframe" width="600" height="200" align="center" scrolling="yes" marginheight="0" marginwidth="0" frameborder="1"></iframe>

Thank you for your time,

Nick



Sponsored Link
Ads by Google

Response Number 1
Name: safeTsurfa
Date: May 7, 2004 at 14:38:37 Pacific
Reply:

Have you tried including bgcolor= inside the opening tag?


0

Response Number 2
Name: SN
Date: May 7, 2004 at 16:30:55 Pacific
Reply:

I wouldn't bet that would work...An Iframe is just that...An inline frame of another document that has its own background color. If you want to change it, change the bgcolor of C:\Third_Party_Apps\MH PACS Web\message.txt.

Luck
-SN


0

Response Number 3
Name: Jamie_McCoy
Date: May 7, 2004 at 16:32:33 Pacific
Reply:
0

Response Number 4
Name: -Bryan-
Date: May 7, 2004 at 16:44:13 Pacific
Reply:

Your problem is that you are displaying a text file in the iframe. If you display another html file in the iframe, just change the background color of that html file. That "shouldn't" affect your main page.

I've done just that on a site quite some time ago. If I can locate the code for you, I will.



0

Response Number 5
Name: Jamie_McCoy
Date: May 8, 2004 at 07:36:00 Pacific
Reply:

if u can locate the code?

maybe your on bout somethin else but its just

bgcolor="#FF0000"

or wot ever color u want

Regards, Jamie McCoy


0

Related Posts

See More



Response Number 6
Name: -Bryan-
Date: May 8, 2004 at 11:22:15 Pacific
Reply:

ROFL!!!

Jamie, I know how to change the background color (and so should he). I was going to send him the code for the entire page, just for the heck of it.


0

Response Number 7
Name: Jamie_McCoy
Date: May 8, 2004 at 17:04:30 Pacific
Reply:

ooo sh*t soz mate :P

Regards, Jamie McCoy


0

Response Number 8
Name: -Bryan-
Date: May 9, 2004 at 01:47:50 Pacific
Reply:

LOL!

-=Bryan=-


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: bg color of iFrame

text color of a javascript output www.computing.net/answers/webdevel/text-color-of-a-javascript-output/3803.html

Website Scrollbar Colors www.computing.net/answers/webdevel/website-scrollbar-colors/3779.html

BG Stretch on any Resolution w/text www.computing.net/answers/webdevel/bg-stretch-on-any-resolution-wtext/785.html