Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Web Design & Development
Tag Cloud
access audio black screen blue screen boot bsod connection crash dell desktop driver drivers dvd email error excel excel 2003 firefox hard drive hardware hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem ram recovery router safe mode slow sound spyware tdlwsp.dll trojan upgrade video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
iFrame

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
Nemetode's Avatar
Junior Member with 16 posts.
 
Join Date: Mar 2008
01-Jul-2009, 06:38 AM #1
iFrame
Cannot beleive this site is no longer working in Firefox but anyway..

How do i give an ifame a background colour?

Im using the following

<iframe id="myframe" src="../fred/embed/?CategoryID=9" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:750px; display:none"></iframe>
Eriksrocks's Avatar
Computer Specs
Distinguished Member with 2,158 posts.
 
Join Date: Aug 2005
Location: Minnesota
Experience: Advanced
01-Jul-2009, 06:03 PM #2
You can't. That's controlled by the background of the page that is being framed. The only way you can control it through an inline style tag is if the background of the framed page is set to transparent.
Tact's Avatar
Senior Member with 476 posts.
 
Join Date: Sep 2002
Location: California
01-Jul-2009, 08:56 PM #3
an iframe is just a mini window that displays a web page. it is not a web page itself and so cannot be customized like that.

just give the web page the background color you want and it should be pretty much the same thing. or what Eriksrocks said which is just as good. maybe better.
__________________
My PC Specs
--Phoenix--
Nemetode's Avatar
Junior Member with 16 posts.
 
Join Date: Mar 2008
02-Jul-2009, 04:12 AM #4
Thanks for the information Guys!

As I didn't want the page background coming through on the background of the iframe I just placed the iframe in a div with the coloured background that I wanted and it works fine.
Closed Thread Bookmark and Share

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 10:29 PM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.