View Full Version : iframe bg color question


pwtgirl
03-28-2004, 11:16 AM
This is my iframe code on my main page..
<IFrame Width="100%" Height="100%" frameborder="no" " style="border: 2 dotted #000000" scrolling="yes" Name="iframe" Src="home.html">
</IFrame>

It works perfectly but i have one question..

I have my external style sheet linked on every page that goes in the iframe. It properly displays my bg color and bg image. But when u first visit my main page until the bg loads on the page inside the iframe the iframe appears white.

So my question: Is it possible to add a bg color attribute to the <iframe> tag itself? So until the html pages inside it load with bg and content the frame appears with my bg color?

Sorry if this is a stupid question. I finally got it all working correctly and should prolly leave well enough alone, it's just one of those tiny things that bugs me.. LoL!!

Huggerz, Mindy

MaGiCSuN
03-28-2004, 03:16 PM
don't know if it will work but try this:

<iframe width="100%" height="100%" frameborder="no" " style="border: 2 dotted #000000" scrolling="yes" name="iframe" src="home.html" bgcolor="COLORHERE">
</iframe>

Love,
Mirna

salomeyasobko
03-28-2004, 03:40 PM
or you can do

<iframe width="100%" height="100%" frameborder="no" " style="background-color: #XXXXXX; border: 2 dotted #000000" scrolling="yes" name="iframe" src="home.html">
</iframe>

of course change the Xs to your color :)

Andybebad
03-28-2004, 04:34 PM
or in the home.html bgcolor=#XXXXXX

MaGiCSuN
03-28-2004, 05:15 PM
the person said she/he allready had a bgcolor and background but wanted a bgcolor for the iframe ;)

Love,
Mirna