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 acer asus bios bsod computer crash driver drivers error ethernet excel freeze gaming google gpu graphics hard drive hardware hdmi internet laptop malware memory monitor motherboard mouse network printer problem ram registry router server slow software sound svchost.exe trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
iFrame

Reply  
Thread Tools
Nemetode's Avatar
Junior Member with 16 posts.
 
Join Date: Mar 2008
01-Jul-2009, 07: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,198 posts.
 
Join Date: Aug 2005
Location: Minnesota
Experience: Advanced
01-Jul-2009, 07: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
Member with 488 posts.
 
Join Date: Sep 2002
Location: California
01-Jul-2009, 09: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.
Nemetode's Avatar
Junior Member with 16 posts.
 
Join Date: Mar 2008
02-Jul-2009, 05: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.
Reply

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.

Search Tech Support Guy

Find the solution to your
computer problem!




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



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 05:22 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.