Click to See Complete Forum and Search --> : Iframe background color?
le007
12-15-2006, 03:10 PM
<IFRAME SRC="leo.html" margin="0" FRAMEBORDER="0" style="background-color: black;" NAME="main" width="790" height="480" scrolling="--"></iframe>
When I load just a picture into the frame, just simply a jpg as a link into the frame the background is black in mozilla/ff but white in IE?
Any suggestions?
Thanks,
Leo
WebArt
12-15-2006, 05:17 PM
What i can make out of your code is that you want something to be display in the iframe? and that that file name is "leo.html".
If i understand your question correctly, you want the background color a specific color.
That color of the iframe will be the "body color" of your file "leo.html".
Hope it help!!!
le007
12-15-2006, 07:07 PM
Thanks for that - that works fine. What I'm trying to get at though is when I aim a jpg at an iframe - the background comes up white in IE and I can't change it!
ShaneSwing
12-15-2006, 08:38 PM
LE007, Hello to you. I have not tried this yet (sorry, it's late) so I don't know if it will work, but you could try to set up your css either in a file or in the head and set the !important rule for your background color. Seems something in IE is taking precidence over your inline style (weird though). Hope I'm clear here, as I'm half falling asleep right now.
Regards
le007
12-16-2006, 08:22 PM
Thanks buddy